Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.12.4
-
None
-
I have tested this on Windows 10 and macOS 10.14
-
-
e076965542148b8c2341fd4418733febbf9ae1ec 4522b17159a29ffd12c4d93be8a6e8e1a05dccd0 (qt/qtbase/dev)
Description
I have a QTableView combined with a QStandardItemModel.
The first section i the horizontal header of the QTableView has a Stretch resizeMode and the second one a Fixed resizeMode.
When QStandardItemModel::setItem is called, the resizeMode of the first section is reset to a Interactive resizeMode.
In the attached example, when you click the "Update" button, QStandardItemModel::setItem is called which sets a new item in the topleft cell of the table. At that moment you see the width of the first column changing because its sectionResizeMode has changed
Attachments
Issue Links
- duplicates
-
QTBUG-13605 QStandardItemModel::setItem makes the QPersistentModelIndexindex of the row Item invalid.
- Closed