Settings ======== Overview -------- :class:`qtypy.settings.Settings`: Pythonic wrapper for QSettings Example ------- .. code-block:: python from qtypy.settings import Settings settings = Settings() with settings.grouped('Geometry'): mainWindowGeometry = settings.value('MainWindow') if 'MainWindow' in settings else None for item in settings.array('RecentFiles'): self.addRecentFile(item.value('Path')) ... with Settings() as settings: # So that sync() is called on exit settings.setValue('MainWindow', mainWindowGeometry) with settings.array('newarray') as items: for path in self.recentFiles(): items.add(Path=path) Reference --------- .. automodule:: qtypy.settings :members: