Selection change handlers of the items might call a method that implicitly recreates the selectedItems QSet, which then invalidates the iterators of the ranged for loop, resulting in crashes. Iterate over a copy of the set instead. Add a test case that crashen without the fix. Fixes: QTBUG-101651 Pick-to: 6.3 6.2 Change-Id: I6da6f4043fe1906b0186931a37283f635cb5a404 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> |
||
|---|---|---|
| .. | ||
| testData/render | ||
| .gitignore | ||
| Ash_European.jpg | ||
| BLACKLIST | ||
| CMakeLists.txt | ||
| graphicsScene_selection.data | ||
| images.qrc | ||
| tst_qgraphicsscene.cpp | ||