Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0 Alpha
-
None
-
35d500526990fafe5b71d97b051a770a2a81e82a
Description
All listeners should get invoked, even if they remove themselves while iterating the listeners. An index-based loop would skip the next listener in the list, and an iterator-based or range for loop ends up with invalid iterators unless it makes a (cheap) copy before iterating the listeners.
The listeners were fixed in https://codereview.qt-project.org/#/c/159505/ but https://codereview.qt-project.org/#/c/155386/ reintroduced the issue for itemGeometryChanged().
Attachments
Issue Links
- replaces
-
QTBUG-53453 Regression: Pushing item with two drawers into StackView crashes in QQuickItemPrivate::itemChange()
- Closed
- resulted from
-
QTBUG-54727 Tumbler: destroyed item change listeners notified
- Closed