I'm scripting Pyqt Qdialog widgets using py charm. The widgets generally prompt user to select a list item then close and return the value. But I have noticed that when testing outside of Maya, the process does not quit - no "process completed with return code(0)" message from Pycharm.
I assume this means that the qapplication instance is still running. So, how do I have my widget close both itself and the parent qapplication? Is there a best practice for this?
Also, the widgets are ultimately run in Maya. Is a qwidget's close() method sufficient for garbage collection when Maya is the parent qapplication?