I know what is wrong.
I create Pawn objects on stack and then I put them inside QMap<int, Pawn> what evokes copy constructor. Therefore a pointer to a pixmap points still to the QPixmap of an old temporary object that is soon destroyed.
I know what is wrong.
I create Pawn objects on stack and then I put them inside QMap<int, Pawn> what evokes copy constructor. Therefore a pointer to a pixmap points still to the QPixmap of an old temporary object that is soon destroyed.
OK then. That seems to be it.
Bookmarks