[PyQt] Another connect problem
scorp1us at yahoo.com
Thu Oct 1 19:22:00 BST 2009
job is not a member of the class (self.job) so it gets destroyed.
----- Original Message ----
From: Thomas Olsen <tanghus at gmail.com>
To: pyqt at riverbankcomputing.com
Sent: Thursday, October 1, 2009 2:09:21 PM
Subject: [PyQt] Another connect problem
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
PyQt mailing list PyQt at riverbankcomputing.com
More information about the PyQt