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

Multiline QHeaderView and ResizeToContents

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes