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

windows11 style does not draw Qt::BackgroundRole custom colors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.7.0 Beta2
    • 6.7.0 Beta1
    • GUI: Look'n'Feel
    • None
    • Windows 11 Pro 23H2 Build 22631.2861
      Lenovo ThinkPad E15 Gen2 AMD Ryzen 4700U Laptop
      Visual Studio 2022 17.8.3, MSVC 19.38.33133.0

    Description

      My app uses QTreeView with a custom QAbstractItemModel returning different background colors in `data()` for `Qt::BackgroundRole`.

      With `fusion` style I get the following expected results (see attachment). When using `windows11` style however no custom colors are drawn in the tree view causing the loss of all visual feedback (attached as well).

       

      Attachments

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

        Activity

          People

            wladimir.leuschner Wladimir Leuschner
            derreisende77 Christian F
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes