PyQt, Cannot send events to objects owned by a different thread?

Alexander Tuchacek atuc at gmx.de
Sun Nov 25 09:22:24 EST 2007


hallo,

i try to adress an qt object 

self.statusbar.showMessage("rtt %s...." % (n.rtt))

in an callback function, comming from a shared lib importet by ctypes, on
osx this works wonderfull 

when i run the same code on linux (ubuntu gutsy), i get this core dump, ok,
i understand that the problem is, that i cant speak to the qt thread, but
why does it work on osx? 

shall i recompile python? pyqt or sip? without threads? 

could somebody give me a hint what to do best? how can i call a qt object in
an c-lib callback? 

thanks for any help,
alex

ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to
objects owned by a different thread. Current thread 82c31e8.
Receiver 'MainWindow' (of type 'MainWindow') was created in thread
81f5060", file kernel/qcoreapplication.cpp, line 269
Aborted (core dumped)




More information about the Python-list mailing list