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

dynamic stylesheet refresh fails for combobox's abstractitemview

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.5.1
    • Widgets: Style Sheets
    • None
    • Windows

    Description

      According to the documentation, I should be able to use unpolish/polish to trigger a stylesheet refresh that will update the style of the widget to reflect dynamic properties which are referenced in the stylesheet.

      However, the following code demonstrates that this is not entirely true. First I set the object name to "fancy". Now, neither polish/unpolish nor setStyle reflect the new style. Finally, when I use setStyleSheet then it is reflected.

      Please see attachment for code sample.
       

      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
            patrickp Patrick Parker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes