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
Attachments
For Gerrit Dashboard: QTBUG-114225 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
487372,2 | QAbstractProxyModel: delay headerDataChanged emissions when inserting/removing rows/columns | dev | qt/qtbase | Status: MERGED | +2 | 0 |
487373,3 | QHeaderView: Don't add new sections on no-op | dev | qt/qtbase | Status: MERGED | +2 | 0 |
487503,2 | QAbstractProxyModel: delay headerDataChanged emissions when inserting/removing rows/columns | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
487564,2 | QAbstractProxyModel: delay headerDataChanged emissions when inserting/removing rows/columns | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
487566,2 | QHeaderView: Don't add new sections on no-op | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
487567,2 | QHeaderView: Don't add new sections on no-op | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |