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

Multiline QHeaderView and ResizeToContents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.5.1
    • Widgets: Itemviews
    • None

      If QHeaderView has multiline data, and
      header()->resizeSections(QHeaderView::ResizeToContents) is called
      or setSectionResizeMode is set to QHeaderView::ResizeToContents,
      then section might have too much white space.

      EDIT:
      in example there is multiline header by default,
      comment line 47 in headerData
      and uncomment 48 to see how it works for no multilne header.

        1. b3.png
          40 kB
          mir3x
        2. d.tar.gz
          2 kB
          mir3x
        3. main.cpp
          2 kB
          Christian Ehrlicher
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            chehrlic Christian Ehrlicher
            mir3x mir3x
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes