Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97922

自定义控件设置动态属性Qss在Qt6上无效,Qt5上正常

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Widgets: Style Sheets
    • None
    • Mac 10.15

    • macOS

      1、基于QPushButton自定义了MPushButton

      2、不同状态的QSS写在了QSS文件中

      3、代码中动态更新属性状态

      4、Qt5.15.下测试正常。Qt6.2.1下无效

      5、具体可查看附件

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            yqter yan huajian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes