Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QGuiApplication::setPalette and QML
Forum Update on Monday, May 27th 2025

QGuiApplication::setPalette and QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 229 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.
  • rincewindR Offline
    rincewindR Offline
    rincewind
    wrote on last edited by rincewind
    #1

    According to the Qt documentation, you can change the palette of QML controls.

    "You can also set the default palette for controls by either:
    passing a custom palette to QGuiApplication::setPalette(), before loading any QML; or "

    I change the palette, but when I access the palette in a Quick control, the palette is still the system palette. I think the issue is with the signal paletteChanged on QGuiApplication which is not firing in Qt 5.12. It seems it is fixed in 5.13 according to this bug. I am unfortunately stuck on 5.12 for the moment.

    Is there another way of getting my palette into the Quick controls?

    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