I just threw that together real quick. That should be a pointer to the stored value, rather than a shallow copy (looking for edit button).

What it's supposed to demonstrate is a valid STL iterator that requires the dereferenced value of the iterator to increment. qDeleteAll(...) deletes the dereferenced value before iterating. Resulting in a memory access error on iteration.