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

endResetModel resets column widths in the QTableView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.4
    • Widgets: Itemviews
    • 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

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              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