Are Qt's stylesheets really handling _dynamic_ properties?

后端 未结 4 398
名媛妹妹
名媛妹妹 2021-01-04 01:47

Is Qt\'s dynamic properties really so dynamic with stylesheets?

I have the basic example from stylesheets and dynamic properties:

/*stylesheet:*/
*[f         


        
4条回答
  •  温柔的废话
    2021-01-04 02:01

    I tried this too with no luck, and when I found the following text in the documentation, I gave up. See The Style Sheet Syntax:

    Warning: If the value of the Qt property changes after the style sheet has been set, it might be necessary to force a style sheet recomputation. One way to achieve this is to unset the style sheet and set it again.

提交回复
热议问题