Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Palette change + 6.1
Forum Update on Monday, May 27th 2025

Palette change + 6.1

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 269 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fizzyade
    wrote on last edited by
    #1

    Hi,

    I added support in my application to building against Qt 6.1, I have just been do a few final bits where things haven't quite gone across from 5 to 6 properly.

    The final part was ensuring that on macOS, theme changes are correct. (i.e the user changes from light to dark mode).

    Previously I was using the PaletteChanged event to handle OS theme changes, but it has been deprecated so I changed it as per the deprecation warning to ApplicationPaletteChange.

    When Compiling on Qt 5.15.2 both PaletteChanged and ApplicationPaletteChange behave correctly, a smooth change of colours as the switch occurs.

    On 6.1, it works correctly when using PaletteChanged, nice and smooth, but when I switch to ApplicationPaletteChange I get a horrible switch where controls aren't in sync or are not fading properly, switching back to PaletteChanged it works great.

    I've attached links to youtube to show what happens.

    5.15.2 works with both PaletteChanged and ApplicaitonPaletteChange
    6.1 only works properly with PaletteChanged

    The source code is on GitHub, https://github.com/nedrysoft/pingnoo it's the ThemeSupport submodule that contains the palette code.

    Correct First:

    https://youtu.be/5NUjACPLLvU

    Broken Second:

    https://youtu.be/59g3C6LRe24

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Looks like you may have found a bug. Did you already check the bug report system ?

      Can you provide a minimal compilable example that shows this behaviour ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved