[PyQt] Keep references to window modal, native dialogs on OSX, Qt5.3
lloyd konneker
bootch at nc.rr.com
Sun May 25 16:28:18 BST 2014
I had symptoms on OSX10.9, Qt5.3 where dialogs closed themselves, and
print dialog segfaulted. I found that I was not keeping a reference to
the dialog, beyond the call to dialog.open(). I suppose this is
especially important where Qt enlists native dialogs, such as
QMessageBox and QPrintDialog, and when you open the dialogs as sheets
(window modal.) I can't remember this specific problem on earlier
versions of OSX and Qt, so I imagine its a subtle change in the sequence
of events. Anyway, keep a reference, and port early and often.
More information about the PyQt
mailing list