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

Wrong Foreground color with windows 11 style

XMLWordPrintable

    • Windows
    • 7dc67d989 (dev), 41df8e68c (6.8), c52d0bfb0 (6.7)

      Hello,

      I've a problem when using windows 11 style. Using windowsvista style works as expected in this version. I have a QTreeView and a model behind it. In this model from the data() function I return colors for Qt::ForegroundRole. This color sseems to be iognored while painting the tree text items. I always see black text independent of returned color. I use stylesheets, dont't know if this plays a role as in vista style everything works.

      windows 11 style:

      same code with vista style:

        1. image-2024-07-18-11-48-24-511.png
          5 kB
          Steffen Roeber
        2. image-2024-07-18-11-49-14-687.png
          6 kB
          Steffen Roeber
        3. image-2024-07-22-08-42-07-052.png
          7 kB
          Steffen Roeber
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            sroeber Steffen Roeber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes