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

background color of QTreeViewItems with windows 11 style

XMLWordPrintable

    • Windows
    • c0d8ed882 (dev), 44d075955 (6.10), 17f86912b (6.9), e1aff075a (tqtc/lts-6.8)

      When setting a background color to a QTreeViewItem the color do not totally fill the cell.

      there is top and bottom offset and rounded corners on first column.

      in this case the QTreeWidget is difficult to read.

       

      if we use alternate row colors, each row is right full-filled (no offset and no rounded corners)

      Is it possible to fill rows in the same way when setting a background color ?

       

      attached files

      • screen shot with windows 11 style
      • screen shot with fusion style

       

        1. alternate.png
          alternate.png
          21 kB
        2. designer6.6.3.png
          designer6.6.3.png
          12 kB
        3. designer6.9.1.png
          designer6.9.1.png
          24 kB
        4. reproducer.png
          reproducer.png
          34 kB
        5. treeviewItem_fusion.png
          treeviewItem_fusion.png
          44 kB
        6. treeviewItem_windows11.png
          treeviewItem_windows11.png
          49 kB
        7. treeWidgetWithBackground.png
          treeWidgetWithBackground.png
          73 kB
        8. treeWidgetWithoutBackground.png
          treeWidgetWithoutBackground.png
          77 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            chehrlic Christian Ehrlicher
            alban_go2 Alban Pellet
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes