Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 6.10.2 Android: Qt Quick apps ignore dark mode?

Qt 6.10.2 Android: Qt Quick apps ignore dark mode?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt quickandroidpalettedark mode
2 Posts 1 Posters 47 Views 1 Watching
  • 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.
  • B Online
    B Online
    barbicels
    wrote last edited by
    #1

    Did something break dark mode in Qt Quick recently, either Qt or Android?

    On my very up-to-date setup (Qt 6.10.2, Android 16), Qt Creator's stringlistmodel example (a simple Qt Quick app) always shows black text on a white background, regardless of whether Android's Settings > Display > Dark mode setting is on or off. It's the same for other (non-color/palette-affecting) example apps that use Qt Quick.

    By contrast, on the same setup, Qt Creator's hellotr example (a simple Qt Widgets app) still respects dark mode, both at startup and if the mode is changed while running.

    Further info: Our own app, which is programmed to watch for changes to the Application.styleHints.colorScheme property, still senses the dark-mode transition and adjusts its colors appropriately, but any part of our app that relies on the base application palette still thinks it's in light mode, as if that palette no longer respects that property.

    I can't imagine what caused this, unless something broke in Qt Quick, because that colorScheme property still works. Yet, I don't see any complaints online. Am I the only one seeing this?

    Setup:

    • Qt 6.10.2 for Android arm64-v8a, hosted on macOS 15.7.4
    • Android 16
    • Lenovo Idea Tab TB336FU
    • Lenovo ZUI 17.5.10.085 Stable version
    1 Reply Last reply
    0
    • B Online
      B Online
      barbicels
      wrote last edited by
      #2

      Update: I was able to work around this by binding a prebuilt Palette object (whose various color property values are all contingent on colorScheme) to the ApplicationWindow's palette property.

      That shows that the base palette still works, but not why it's failing to follow colorScheme by default (as is the case for Qt Widgets apps on Android or Qt Quick apps on other platforms).

      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