[PyQt] Keep references to window modal, native dialogs on OSX, Qt5.3

Phil Thompson phil at riverbankcomputing.com
Mon May 26 14:28:36 BST 2014


On 25/05/2014 4:28 pm, lloyd konneker wrote:
> 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.

I assume you are using a PyQt5 snapshot (as you have been using 
pyqtdeploy). I made a change a couple of weeks back that may be the 
cause of this. I've now had a change of mind and reverted the change.

Phil


More information about the PyQt mailing list