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

QTableView size hints do not honor the span

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.1.0 Alpha
    • 5.15.2
    • Widgets: Itemviews
    • None
    • All
    • 0e4cc2aca7eb77879d20142e761773a891b33f10 (qt/qtbase/dev)

      The two functions QTableViewPrivate::heightHintForIndex() and QTableViewPrivate::widthHintForIndex() do not take the span into account which lead to a too big cell when auto-resizing a row or column. See attached testcase. To reproduce it, try to automatically resize the second column with the mouse (double click on the space between second and third vertical header item). Same can be observed for rows.

       

      The original bug report can be found here: https://forum.qt.io/topic/121148/qtableview-using-setspan-doesn-t-resize-as-expected

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes