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/CAFRtmOA5upC0bMU19DrSs6y1W1zULw5byHi%2Bqj%2Bfc0U1F%2B-12Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
