Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.4.0, 6.4.3, 6.5.1
-
None
-
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