[PyQt] postEvent(), blocking processEvents() and QMessageBox.exec_

Carl Wolff carl at wolff-online.nl
Fri May 27 15:38:03 BST 2016


Hello,

in my application I am posting (earlier recorded) events using the
postEvents() call. After each postEvent() call I always call
processEvents() to let the application process the event.

When the logic of my app shows a modal dialog (as a result of the posted
event) using the following snippet:
msg = PyQt4.QtGui.QMessageBox(self)

...

return msg.exec_() == PyQt4.QtGui.QMessageBox.Yes

then the processEvents() call blocks.

Can somebody give some hints here, what the cause is?

Best regards

Carl.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160527/4c121d7f/attachment.html>


More information about the PyQt mailing list