Thanks Justin and Marcus,
Makes me feel like staying away from using PySide... Seems like there
are too many surprise factors.

2017-06-29 6:08 GMT+00:00 Marcus Ottosson <[email protected]>:
> I get this in PySide2 as well sometimes.
>
> from PySide2 import QtWidgets
> any_widget = QtWidgets.qApp.topLevelWidgets()[0]
> any_widget.parent() # Ok
> any_widget.parent() # Already deleted
>
> any_widget = QtWidgets.qApp.topLevelWidgets()[0]
> any_widget.parent().parent()  # Ok
> any_widget.parent()  # Already deleted
>
> We are experiencing crashes similar to what Ben reports, after we started to
> make a shift to Qt.py just like Ben.
>
> If you happen to catch at which statement this happens, I can see if I can
> protect against this in Qt.py, though odds are it runs deeper than that.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CADRBWabkNqc29TX9H-TpT5bkUkxvX5Z0EF1gdVmBchHD8G_eEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to