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

Application palette changes at runtime do not work for all widgets

    XMLWordPrintable

    Details

    • Commits:
      1e75dcf2518e37a7b83d006a4e002f972615b43b (5.10.1) b5221dff520efa3bb923c4faeeeb5712f7724a87 (5.9.6)

      Description

      When application palette is changed at runtime (rather than at startup), the palette changes are not propagated correctly to all widgets. For example `QSpinBox`, `QComboBox` and `QTreeView` and maybe some others are not correctly updated, while most widgets are updated fine.

      See https://stackoverflow.com/questions/47971350/change-application-palette-run-time-without-restarting-the-application for source code to replicate this wrong behaviour. Observed on Windows 10, but I expect the same on other platforms.

      For example I started the application with 'dark' fusion theme:
      https://i.stack.imgur.com/YPLlI.png

      But when I switch the palette to standard fusion 'light' scheme at run-time I get this:
      https://i.stack.imgur.com/Rdp08.png

        Attachments

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

          Activity

            People

            Assignee:
            dedietri Gabriel de Dietrich (drgvond)
            Reporter:
            vladimir.kraus Vladimir Kraus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes