擅长:python、mysql、java
<p>从<a href="https://doc.qt.io/qtforpython/PySide2/QtCore/QSettings.html#detailed-description" rel="nofollow noreferrer">Documentation</a></p>
<blockquote>
<p>Users normally expect an application to remember its settings (window sizes and positions, options, etc.) across sessions. This information is often stored in the system registry on Windows, and in property list files on macOS and iOS. On Unix systems, in the absence of a standard, many applications (including the KDE applications) use INI text files.</p>
<p>QSettings is an abstraction around these technologies, enabling you to save and restore application settings in a portable manner. It also supports custom storage formats .</p>
<p>QSettings ‘s API is based on QVariant , allowing you to save most value-based types, such as QString , QRect , and QImage , with the minimum of effort.</p>
</blockquote>
<p>因此它实际上不仅仅是一个基本的<code>dict</code>对象,它处理与在重新启动之间保存应用程序状态相关的常见任务。它实现了许多方便的<a href="https://doc.qt.io/qtforpython/PySide2/QtCore/QSettings.html#functions" rel="nofollow noreferrer">methods</a>来实现这一点。在</p>