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

endResetModel resets column widths in the QTableView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.4
    • Widgets: Itemviews
    • None

      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
      

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            explorer.85 Валерий
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes