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. alternate.png
          21 kB
          Alban Pellet
        2. reproducer.png
          34 kB
          Alban Pellet
        3. treeviewItem_fusion.png
          44 kB
          Alban Pellet
        4. treeviewItem_windows11.png
          49 kB
          Alban Pellet
        5. treeWidgetWithBackground.png
          73 kB
          Alban Pellet
        6. treeWidgetWithoutBackground.png
          77 kB
          Alban Pellet
        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