From d71dbe3e9322430dceed9cb2d3f957fbac2ab715 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Fri, 11 Oct 2019 09:52:24 +0200 Subject: 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 --- src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/doc') 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. */ /*! -- cgit v1.2.3