September 27th, 2006, 07:58 AM
Pyqt Threads and GUI
I'm building an software that has 2 threads : one with the gui (A) and the other to run the app (B).
I'm trying to make B update A's gui, especially additem to a QListWidget.
I have no problem adding items but once I'm in the other thread it won't work properly.
Before triggering the thread, I'm setting a pointer so that I can access theard A :
Then from the thread, I'm trying to use
selfwindows = thePointer
but this won't work and returns :
Is there any other way to update an item? I'm running out of idea.
QObject::connect: Cannot queue arguments of type 'QModelIndex'
October 10th, 2013, 01:27 PM
This might be about 7 years too late, but the problem appears to be that you haven't made a connection. Look up connect in the PyQt4 docs. Also, this guy has the best tutorials I've seen on PyQt!