At the moment I select a specific area of a graph like this:
(Example values) int begin = 10; int end = 75; QCPDataRange range; range.setBegin(begin); range.setEnd(end); QCPDataSelection selection; selection.addDataRange(range); plot->graph(0)->setSelection(selection);
Everything works fine, but when I select a range with too much values, the performance slows down very much.
When I understood it right, it is because of the QPen-width of the selection.
So is it possible to change this width?
I saw from a previous post:
QPen p(Qt::blue, 0, Qt::SolidLine); yourGraph->setSelectedPen(p);
But there isnt a method called "setSelectedPen(QPen)", someone knows, how to do this?