[PyQt] Creating and showing dialog in other unit seems not to work

michael h michaelkenth at gmail.com
Fri Sep 25 03:47:15 BST 2015


>
>
> I don't understand why it makes a difference when the dialog is created
> and shown in another file.
>
> System info:
> OS: Kubuntu 15.04 (amd64)
> Python: 2.7.9
> PyQt4: 4.10.4
>
> Best regards,
> Reinder
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


Vincent is correct.

Correctly set the parent of the dialog (or alternatively keep a reference,
but parenting is the way to go IMO)

- michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150924/f4abe4e1/attachment.html>


More information about the PyQt mailing list