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

background color of QTreeViewItems with windows 11 style

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.3, 6.9.0
    • Widgets: Styles
    • Windows
    • 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. treeWidgetWithoutBackground.png
          treeWidgetWithoutBackground.png
          77 kB
        2. treeWidgetWithBackground.png
          treeWidgetWithBackground.png
          73 kB
        3. treeviewItem_windows11.png
          treeviewItem_windows11.png
          49 kB
        4. treeviewItem_fusion.png
          treeviewItem_fusion.png
          44 kB
        5. reproducer.png
          reproducer.png
          34 kB
        6. alternate.png
          alternate.png
          21 kB
        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:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change