Hi all,

I'm trying to programmatically select data ranges in a graph.

I have the following settings:

plot->setSelectionRectMode(QCP::srmSelect);
plot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectPlottables);

When I call:

plot->graph(0)->setSelection(QCPDataSelection(QCPDataRange(idx-1,idx+1)));

there is no visual feedback. The data is still not selected in the drawing.
I see that there is a lot of code inside processRectSelection() that is not present in setSelection().

Is this expected ? How can I make the selection visually updated ?

Thanks