Hi,
i just found this library and it's looking great so far. I'm creating qt application to view graphs for embedded linux device. And I need to have a mouse tracking tracer which i implemented with the following code:
connect(ui->myPlot, &QCustomPlot::mouseMove, this, &Widget::moveMarker); void Widget::moveMarker(QMouseEvent *event) { if(event->buttons() == Qt::LeftButton) { myTracer->setGraphKey(ui->myPlot->xAxis->pixelToCoord(event->pos().x())); ui->label->setText(QString::number(myTracer->position->key())); ui->label_2->setText(QString::number(myTracer->position->value())); ui->myPlot->replot(); } }
But what worries me is that everytime i move my marker replots will slow down machine(it will lag) as data i want to plot gets quite large(about 1 million data points).
So i figured i should use an overlay widget on top of graph where i would move tracer and wouldn't need to replot graph every time. Is there an overlay support in this library, maybe a way to easily implement this?
This is roughly how my graph looks:
http://imgur.com/J8lb3re