code: def loadSettings(self):
          
          self.settings.beginGroup('rampviewer')
          geometry = self.settings.value('geometry').toByteArray()
          self.settings.endGroup()
  
          self.restoreGeometry(geometry)
docs: Load window state from self.settings