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

endResetModel resets column widths in the QTableView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.9.4
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      When the endResetModel () signal is called, the width of the columns of the QTableView set earlier is reset. 

      For example:

      view-> horizontalHeader () -> setSectionSize (0, 50)
      qDebug() << view-> horizontalHeader () -> sectionSize (0)  //50
      endResetModel()
      qDebug() << view-> horizontalHeader () -> sectionSize (0)  //100, resets toDefaultSize
      

       

        Attachments

          Issue Links

          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:
                explorer.85 Валерий
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes