Saved mainwindow state and geometry

Set the organization and application name for QSetting.
Using QMainWindow's saveGeometry(), saveState(), restoreGeometry() and restoreState() to keep window state and geometry after closing and reopening the application.