code: def saveSettings(self, groupName=None):
          
          groupName = groupName if groupName else self.settingsGroupName
          settings = QtCore.QSettings()
          logger.info("Saving {} to: {}".format(groupName, settings.fileName()))
  
          settings.remove(groupName) # start with a clean slate
          settings.beginGroup(groupName)
          try:
              for itemNr, item in enumerate(self.items):
                  key = "item-{:03d}".format(itemNr)
                  value = repr(item.asDict())
                  settings.setValue(key, value)
          finally:
              settings.endGroup()
docs: Writes the registry items into the persistent settings store.