summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2019-10-11 09:52:24 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2019-10-21 07:22:23 +0000
commitd71dbe3e9322430dceed9cb2d3f957fbac2ab715 (patch)
treec5fa918e77763a708549bbb849341228fe0b7ee2 /src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc
parent5205510524602bb36d3150001c22c2566259655b (diff)
docs: clarify usage of css 'qproperty' in stylesheets
Clarify that the qproperty properties will only be evaluated once. Fixes: QTBUG-2982 Change-Id: Ie294ced118f740c7378c62c0b5a4924d5628e118 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc')
-rw-r--r--src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc b/src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc
index 00323eace6..84233e4b62 100644
--- a/src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc
+++ b/src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc
@@ -549,6 +549,10 @@
If the property references an enum declared with Q_ENUMS, you should
reference its constants by name, i.e., not their numeric value.
+ \note Use the qproperty syntax with care, as it modifies the
+ widget that is being painted. Also, the qproperty syntax is evaluated only
+ once, which is when the widget is polished by the style. This means that any
+ attempt to use them in pseudo-states such as QPushButton:hover, will not work.
*/
/*!