quit

Clean up QThread after calling quit()

I have a problem. If I call Abort(), run function will return without complexMath instance have enough time to do clean up. What i want is, after calling Abort(), complexMath instance have enough time to shutdown itself, clearing all pending signal and slot(inside complexMath, it also have it own signal and slots) before it return. vo...

PyQt: How can I quit a QDialog?

Hi guys, I've build a QDialog Widget. My problem is, I can't quit the QDialog. If I press one of the buttons, then the QDialog is only set to "hide". Here is a little part of the code. It is executable. I don't know what I'm doing wrong. Maybe one of you can tell me. from PyQt4.QtCore import * from PyQt4.QtGui import * import sys ...