from PyQt.QtCore import QSettings settings = QSettings() settings.setValue("example_key", "example_value")
from PyQt.QtCore import QSettings settings = QSettings() example_value = settings.value("example_key")In both examples, the QSettings constructor is called without arguments, which means the settings are stored in the standard system configuration files. The package library for PyQt.QtCore and QSettings is PyQt, which is a Python binding for the Qt application framework.