QSettings is already configured and in use. The settings are saved in memory and later also to a file (see logfile), at the latest on application exit. Use with:
s=QSettings()# will use application settingssize=s.value("mainwindow/size",QSize(800,600))# QSize(800, 600) is fallback value, i.e. first application runs.setValue("mainwindow/size",self.size())
Some values need to be collected from QSettings with an additional type parameter as QSettings cant handle all Pythons datatypes.
s.value("mainwindow/menu/node_info",True,bool)# QSettings stores 'true/false' which is a c++ datatype