QImage image;
QByteArray pData;
QFile *file=new QFile("C:/123.jpg");
file->open(QIODevice::ReadOnly);
pData=file->readAll();
image.loadFromData(pData);QImage image;
QByteArray pData;
QFile *file=new QFile("C:/123.jpg");
file->open(QIODevice::ReadOnly);
pData=file->readAll();
image.loadFromData(pData);