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

QWidget palette is not updated with setPalette when widget or its parent style is QStyleSheetStyle

    XMLWordPrintable

Details

    Description

      Due to QStyleSheetStyle restores palette (in polish call) to saved one when it was connected to QWidget (or its parents), widget palette get locked in one state.
      Same situation with QWidget font is handled with using _q_styleSheetWidgetFont property, which is updated in every setFont call.
      But for palette I think we can add call in QWidget setPalette to QStyleSheetStyle which will update customPaletteWidgets variable.

      Bug reproducing is simple, code in attachment

      Attachments

        Issue Links

          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
              kojoley Nikita Kniazev
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes