Hi,

I have the problem that QSettings creates data which doesn't exist. I save my settings with the following function:

Qt Code:
  1. void MainWindow::writeSettings() {
  2. settings->setValue("LastDB", db->getDbName());
  3. settings->setValue("Window/Size", size());
  4. settings->setValue("Window/Maximize", isMaximized());
  5. }
To copy to clipboard, switch view to plain text mode 

But the QMap, which is delivert to the write function contains the following data:

Qt Code:
  1. ( "LastDB", QVariant(QString, "F:/Develop/YAMDB/movie.yamdb") )
  2. ( "LastDB/Window/Maximize" , QVariant(QString, "false") )
  3. ( "Window/Maximize" , QVariant(bool, false) )
  4. ( "Window/Size" , QVariant(QSize, QSize(900, 650) ) )
  5. )
To copy to clipboard, switch view to plain text mode 

Where does the value "LastDB/Window/Maximize" came from