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

      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

        1. qtbug-41994.zip
          3 kB
          Nikita Kniazev
        2. dockwidgets-withfont.zip
          21 kB
          Arnaud Diederen
        3. reparenting-causes-font-override.gif
          510 kB
          Arnaud Diederen
        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
            kojoley Nikita Kniazev
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes