[PyQt] Another connect problem
tanghus at gmail.com
Thu Oct 1 19:09:21 BST 2009
This is actually PyKDE4 related but the list seems to be dead.
I am trying to connect a KIO.TransferJob to a method in my class but must
be doing something wrong. A very stripped down version of my class looks like
from PyKDE4.kdecore import *
from PyKDE4.kio import *
job = KIO.get(KUrl("http://somesite.com"))
QObject.connect(job, SIGNAL("data(Job*, const QByteArray&)"),
def job_received(self, job, data):
print "Data received: " + data
But job_received is never called. I know I should be using the new-style
connect but I haven't really grasped it yet...
Best Regards / Med venlig hilsen
More information about the PyQt