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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.0
    • Widgets: Style Sheets
    • None
    • Mac 10.15
    • macOS

    Description

      1、基于QPushButton自定义了MPushButton

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

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

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

      5、具体可查看附件

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes