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

Inactive components not correcly rendered in dark-mode environments in Qt 6.5.0

    XMLWordPrintable

Details

    • Linux/X11
    • 4cffb3b5f (dev), 3e971798e (6.6), 937469f06 (6.5)

    Description

      After upgrading to PySide 6.5.0 (the Qt implementation for python), the rendering of inactive components (e.g. an inactive button, as in the screenshot below) does not work properly when the operating system is in dark-mode.

      Specifically, it appears that inactive components are always rendered in "light mode", even if the environment is in "dark mode". If the component is made active, then it gets proper rendering (coloring), the problem only occurs when the component is inactive.

      The application behaves as expected when run with PySide 6.4.x, but updating to PySide 6.5.x breaks it.

      In addition, tooltips are also not properly displayed under PySide 6.5.x anymore (but they work as expected under PySide 6.4.x).

      The issue affects linux machines (tested on Ubuntu 20.04 and above), but does not appear on Mac OS (not tested on Windows).

       

      Additional note: The issue is reproducible with Qt 6.5.3

      Attachments

        1. image-2023-09-20-15-37-00-712.png
          12 kB
          Santhosh Kumar Selvaraj
        2. image-2023-09-21-09-26-10-825.png
          16 kB
          Robin Engler
        3. pyside_bug.png
          11 kB
          Robin Engler
        4. QT113486_Python.zip
          1 kB
          mb3hel
        5. Screenshot from 2023-10-08 23-34-50.png
          9 kB
          mb3hel
        6. Screenshot from 2023-10-08 23-35-13.png
          10 kB
          mb3hel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            santhoshkumar Santhosh Kumar Selvaraj
            robin.engler Robin Engler
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes