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

QTableView grid painting broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.4, 5.14.0 Alpha
    • 5.12.2
    • Widgets: Itemviews
    • None
    • MinGW 7.3.0
    • All
    • 1029a2e01051cd35452941e7b49b36520481cdf0 (qt/qtbase/5.12)

      The painting of the gridlines for a QTableView does not work correctly anymore in Qt 5.12.2. If the grid is painted, then also for the outer cells (column 0) the outer grid line (left side) is painted. This leads to a "double" border because the QTableView also paints its border. Because the QHeaderView does not paint this "double" border for its first (last?) column, this problem is even more noticeable. The following picture shows a 500% zoom of a QTableView in Windows style:

      In Qt 5.9.2 this problem was not there:

      The attached test case shows this problem.

       

        1. Qt_5.12.2_Zoom.png
          30 kB
          Uwe Kindler
        2. Qt_5.9.2_Zoom.png
          7 kB
          Uwe Kindler
        3. ItemviewColumnSizeBug.zip
          3 kB
          Uwe Kindler
        For Gerrit Dashboard: QTBUG-74706
        # Subject Branch Project Status CR V

            chehrlic Christian Ehrlicher
            ukindler Uwe Kindler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes