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

background color of QTreeViewItems with windows 11 style

    XMLWordPrintable

Details

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

    Description

      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

       

      Attachments

        1. alternate.png
          21 kB
          Alban Pellet
        2. designer6.6.3.png
          12 kB
          Alban Pellet
        3. designer6.9.1.png
          24 kB
          Alban Pellet
        4. reproducer.png
          34 kB
          Alban Pellet
        5. treeviewItem_fusion.png
          44 kB
          Alban Pellet
        6. treeviewItem_windows11.png
          49 kB
          Alban Pellet
        7. treeWidgetWithBackground.png
          73 kB
          Alban Pellet
        8. treeWidgetWithoutBackground.png
          77 kB
          Alban Pellet

        Issue Links

          For Gerrit Dashboard: QTBUG-136130
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes