Quote Originally Posted by bunjee View Post
for (unsigned int i = 0; i < mPixmapItem.size(); i++)
{
...
mPixmapItem.remove(i);
...
}
When you remove item from the list, all items after it are shifted from position n+1 to n, but you always increment i. Which means that every time you remove something, you also skip the next item.