QCustomPlot Discussion and Comments

How to prevent QCPItemPixmap from overwriting the gridReturn to overview

    QCPItemPixmap *MyImage = new QCPItemPixmap(this);
	MyImage->setPixmap(QPixmap("F:/1.jpg"));
	MyImage->topLeft->setType(QCPItemPosition::ptPlotCoords);
	MyImage->bottomRight->setType(QCPItemPosition::ptPlotCoords);
	MyImage->topLeft->setCoords(this->xAxis->range().lower, this->yAxis->range().upper);
	MyImage->bottomRight->setCoords(this->xAxis->range().upper, this->yAxis->range().lower);
	MyImage->setScaled(true, Qt::KeepAspectRatio);

Use QCustomPlot's layer system. It is explained in the documentation about QCPLayer. Your specific case is also discussed here:
https://www.qcustomplot.com/index.php/support/forum/378

thank you very much.
sorry, I didn’t understand it before, it’s perfect now.