Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.2.5, 6.3.1, 6.4.0 Beta3
Description
But it might. When an item is freed, if there was previously another element inserted that would have otherwise ended up in that slot it will have moved to the next 'free' slot. So, when an element is erase()d we move the second element into its slot. This item may happen to be an item that has been visited earlier!
Example found here:
https://doc.qt.io/qt-6/qhash.html#erase
Attachments
Issue Links
- is duplicated by
-
QTBUG-126372 Fix docs to state the fact that QHash::erase() is permanently broken
- Closed
- relates to
-
QTBUG-101754 QHash::erase edge-case when erasing elements while traversing
- Reported