Save window state to self.settings.

def saveSettings(self):
        """Save window state to self.settings."""
        self.settings.beginGroup('rampviewer')
        self.settings.setValue('geometry', self.saveGeometry())
        self.settings.endGroup()