Are Qt's stylesheets really handling _dynamic_ properties?

后端 未结 4 406
名媛妹妹
名媛妹妹 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:04

    The following works for me to ensure a proper restyling of the widget:

    myWidget->setStyle(QApplication::style())

    Forcing a recomputation of the stylesheets as proposed by mdcl did not work for me. I am using Qt 4.5.3.

提交回复
热议问题