path: root/src
diff options
authorVolker Hilsheimer <>2022-05-20 22:53:04 +0200
committerVolker Hilsheimer <>2022-05-27 16:10:22 +0200
commitfb9b452f18c98b06d31d115237cdc7a4450c9268 (patch)
tree2a84cb6d0ae9f222f5f2cd0052e358f49ce5ac9d /src
parent1a0eb4fa0191aa01b6b4cfa59370f31cbd7e3934 (diff)
Fix documentation that claims that QStyleHints is read only
Most properties are, but some properties (such as useHoverEffects or showShortcutsInContextMenus) can be set by the application. Pick-to: 6.3 6.2 Change-Id: Ia6e0563a892f26456d595026f6c82502a9e888da Reviewed-by: Friedemann Kleint <>
Diffstat (limited to 'src')
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
index cb07888170..64c3a88be2 100644
--- a/src/gui/kernel/qstylehints.cpp
+++ b/src/gui/kernel/qstylehints.cpp
@@ -71,11 +71,10 @@ public:
An object of this class, obtained from QGuiApplication, provides access to certain global
user interface parameters of the current platform.
- Access is read only; typically the platform itself provides the user a way to tune these
- parameters.
- Access to these parameters are useful when implementing custom user interface components, in that
- they allow the components to exhibit the same behaviour and feel as other components.
+ Access to most settings is read only. The platform itself usually provides the user with
+ ways to tune these parameters. Authors of custom user interface components should read
+ relevant settings to allow the components to exhibit the same behavior and feel as other
+ components.
\sa QGuiApplication::styleHints()