My image is a 608 * 480 png, and I set the coordinate with its width and height, then it outputs "QImage: out of memory, returning null". What's the problem? Can anyone help me out? Many thanks.
QCPItemPixmap *myImage = new QCPItemPixmap(this);
myImage->setPixmap(tMapImage);
this->addLayer("image");
myImage->setLayer("image");
myImage->topLeft->setType(QCPItemPosition::ptPlotCoords);
myImage->bottomRight->setType(QCPItemPosition::ptPlotCoords);
myImage->topLeft->setCoords(this->xAxis->range().lower, tMapImageSize.height());
myImage->bottomRight->setCoords(tMapImageSize.width(),this->yAxis->range().lower);
QImage: out of memory, returning null