using Python 3.6 and PyQt5 I would like to store the geometry of my main window, when I close my application. Any solutions already suggested here, like connecting to the QApplications aboutToQuit or overwriting the close method of my MainWindow (derived from QMainWindow) doesn't work.
If I call 'geometry' in the close method, Python crashes. When I try to find the geometry of the main window in the aboutToQuit, the main window has already been destroyed, so this also doesn't work.
Any other suggestions would be highly appreciated.
Thanks! Gerhard