How to get the current background?
void MultiCurvesPlot::mouseReleaseEvent(QMouseEvent* event)
{
QCustomPlot::mouseReleaseEvent(event);
if (event->button() == Qt::LeftButton)
{
textLabel->setVisible(false);
arrow->setVisible(false);
qDebug() << customPlot->axisRect()->background();
}
the output is
QPixmap(null)