Win: Document limitation regarding registry types not being preserved
QSettings does not preserve the original key type in the registry, it will set the type for the key based on the value that is being set. Therefore we should make it clear that existing key types will be overridden as this can cause some problems with types we do not directly support (such as REG_EXPAND_SZ). Task-number: QTBUG-2894 Change-Id: Ib2f2eed02759591e69fefb98a4a1f3cf897dd5cb Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
0688a755e6
commit
bed6292dde
@ -2358,6 +2358,11 @@ void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile,
|
||||
limitations is to store the settings using the IniFormat
|
||||
instead of the NativeFormat.
|
||||
|
||||
\li On Windows, when the Windows system registry is used, QSettings
|
||||
does not preserve the original type of the value. Therefore,
|
||||
the type of the value might change when a new value is set. For
|
||||
example, a value with type \c REG_EXPAND_SZ will change to \c REG_SZ.
|
||||
|
||||
\li On \macos and iOS, allKeys() will return some extra keys for global
|
||||
settings that apply to all applications. These keys can be
|
||||
read using value() but cannot be changed, only shadowed.
|
||||
|
Loading…
Reference in New Issue
Block a user