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

QGuiApplication::styleHints()->colorScheme() does not return a valid result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.1
    • GUI: Other
    • None
    • Linux/Wayland

    Description

      It seems that `QGuiApplication::styleHints()->colorScheme()` is not returning a valid result on Wayland.

      I have confirmed that the desktop portal returns a valid value for colour preference with:

       

      ```

      > gdbus call --session --dest org.freedesktop.portal.Desktop --object-path /org/freedesktop/portal/desktop --method org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme
      (<<uint32 2>>,)

      ```

      I originally reported this downstream on Telegram Desktop, because the application no longer respects the colour preference setting. The response that I received is that the behaviour that I'm seeing on Telegram Desktop is due to Qt not returning a valid value.

      See: https://github.com/telegramdesktop/tdesktop/issues/27431

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              whynothugo Hugo Barrera
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes