QCustomPlot Discussion and Comments

How to get the current backgroundReturn to overview
May 11, 2023, 07:14
by jukes


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)

AltStyle によって変換されたページ (->オリジナル) /