I have an qcustomplot graph which displays some continuously captured sinewaves (oscilloscope type). I would like to add an persistent mode option, meaning that i want to keep on the the screen all the displayed sinewaves. I have , partially, accomplished this by doing :
if(overdraw)
{
//ui->widgetPlot->setBackground(ui->widgetPlot->toPixmap()); //same behavior
ui->widgetPlot->setBackground(QBrush(Qt::NoBrush));
}
else
{
ui->widgetPlot->setBackground(QColor(Qt::black));
}

The problem with this approach is that the ticklabels are piling up and become thick as well. I want to keep only the displayed sinewaves. Any advise would be really appreciate it.

Thank you the author of this library for the great work.