Since you already have a vector of Magick Image
, your mistake was to save them all as a unique Blob
. Instead, convert them individually to a blob, and then to a QPixmap
:
vector<Image> imageListmpp; // your input
QVector<QPixmap> pixmaps; // your output (use std::vector if you prefer)
QVector<QGraphicsPixmapItem *> graphicsItems;
for(int i=0; i<imageListmpp.size(); i++)
{
// Get the individual image data
Blob blob;
imageListmpp[i].magick("MNG"); // or PNG
imageListmpp[i].write(&blob);
const QByteArray imageData((char*)(blob.data()),blob.length());
// Convert the data to a QPixmap in the vector
pixmaps << QPixmap();
pixmaps.last().loadFromData(imageData);
graphicsItems << Scene->addPixmap(pixmaps.last());
}