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

QTableView size hints do not honor the span

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.15.2
    • Fix Version/s: 6.1.0 Alpha
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      0e4cc2aca7eb77879d20142e761773a891b33f10 (qt/qtbase/dev)

      Description

      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

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There is 1 open Gerrit change