Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0, 6.8
-
None
-
5bab8448f (dev), 3536eb32b (6.9), 78387c078 (6.8)
Description
See sample `main.cpp` below for more details.
If a tree model is laid out as follows:
topItem -> midItem -> bottomItem,
then after removing midItem and inserting it back as a child of topItem, `bottomItem ->model()` returns `nullptr` even though `bottomItem` is now in the model (as a child of `midItem`).
Attachments
For Gerrit Dashboard: QTBUG-131372 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
613127,2 | QStandardItem: correctly set model during insertRows() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
616395,2 | QStandardItem: correctly set model during insertRows() | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
616411,2 | QStandardItem: correctly set model during insertRows() | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |