Is there a fast python way to save all data in all widgets to file before app is close?
And of course read it and restore after app is re-run?
QWidget.saveGeometry saves the geometry of an widget.
QMainWindow.saveState saves the window's toolbars and dockwidgets.
To save other things you can use pickle.
PyQt 4 - save all data in window to file on app close