[Digikam-devel] Qt 4.5.3 QList::erase() issue?

Andi Clemens andi.clemens at gmx.net
Mon Oct 12 17:47:14 BST 2009


Hi,

using Qt 4.5.3 I get reproducible crashes for QList::erase().
It seems that the method returns the same iterator object, although it 
shouldn't.
Here is some test code:
http://digikam3rdparty.free.fr/misc.tarballs/temp/crashy.tar.gz

Either I'm doing something totally stupid here, or Qt is broken. If I omit the 
delete statement, I get a segfault, although I shouldn't get one if ::erase() 
would work just fine.

If I un-comment the delete statement, it seems to work, but only because the 
object the iter is pointing to is deleted and therefore the if clause is not 
reached.

Can anyone confirm this?
Even with an older Qt version?

I don't want to submit a bug to Qt if I am the only one facing this problem.

Andi



More information about the Digikam-devel mailing list