PDA

View Full Version : QT - pumpThread w/out thread doesn't delete objects


Zac256
07-29-2008, 12:19 AM
This pertains to Python w/ Maya w/ QT

I'm using the standard QT/Maya setup - by using the app created by pumpThread.py exactly as described by the documentation.

Note in the documentation http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qcoreapplication.html#processEvents that DeferredDelete events are not processed the with processEvents - which is the only thing called in pumpThread.py|pumpQt.processor.

The documentation also says that calling sendPostedEvents() should fix this, but even after modifying the function to call both processEvents and processEvents, app.hasPendingEvents() still returns True.

The delete events not being processed is interfering with widget's I need to use - on a lesser note things like ToolTips render behind Maya until Maya is closed, that's not too big of a deal but it is annoying for our artists. Secondly, I think it is interfering with the TableWidget items/editing as well.

Long question short - is there either a way to trick Maya to be able to run threads without it crashing (To run app.exec_) or a way to process all the events?

-Zac

CGTalk Moderation
07-29-2008, 12:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.