I have an application in Qt , tell me what to use if I want to, when I exit the application, the data that I store in the class object, for example MyData , is preserved. And when we start the application again, the data already in the application would have been saved.

  • one
    well, if these are settings or some data that need to be stored persistently and the further work depends on them, then in Qt Ust such a QSettings thing it allows you to save configs and any data before exiting, how to work with QSetting in detail in the standard help and look here - Alex.B
  • Write your data using QSettings , either simply in files or in a database (for example sqlite ). - aleks.andr

0