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

QTableView/TreeView not updated when header size is changed programatically

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6
    • Fix Version/s: 5.12.0 Alpha
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Commits:
      c782ed3c48b31dc38b728947270df3fc3f3a7626

      Description

      When the size of a QHeaderView is changed programatically e.g. with setFixedWidth() after the view was layouted, the change is not propagated to the QTableView/TreeView.
      See attached testcase to reproduce the issue

      /edit: a simple solution would be to fire geometriesChanged() on QEvent::Resize but I'm not sure if this creates to much noise...

        Attachments

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

          Activity

            People

            Assignee:
            chehrlic Christian Ehrlicher
            Reporter:
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes