QSettings, save settings of mainwindow