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

QTableView create extra row

    XMLWordPrintable

Details

    • a0bcad390 (dev), 2a1772a64 (dev), abe4c5eda (6.5), c1f6fbdd4 (6.6), 4b5519878 (6.5), 1255def0f (6.6)

    Description

      I am porting some code from qt5 to qt6

      and I found that QTableView will create 1 extra row when I insert 1 row

      I have MyModel and QIdentityProxyModel with setSourceModel to MyModel

      and another QIdentityProxyModel with setSourceModel  to prev QIdentityProxyModel 

      Like this:

      QIdentityProxyModel -> QIdentityProxyModel ->MyModel 

       

      And another important think is 

      horizontalHeader()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );

       

      All works fine with just 1 QIdentityProxyModel 

      or  if I remove setSectionResizeMode( 1, QHeaderView::ResizeToContents );

      All works fine in Qt6.3.2, 6.3.0

       

       

       

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            miskol MICHAL LAZO
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d