QCustomPlot Discussion and Comments

ScatterStyle interactionsReturn to overview

Hi,
I would like to select data point figure (QCPScatterStyle)


I set the scatter style which I want (for example):
graph->setScatterStyle(QCPScatterStyle(QCPScatterStyle::ssCross));

Also, I have this interactions enabled:
myplot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes QCP::iSelectLegend | QCP::iSelectPlottables | QCP::iMultiSelect | QCP::iSelectOther | QCP::iSelectItems);

But I can't achieve what I want because I only can interact with the "line" between data points (wich they have previous scatter style configured) but I can't interact with data points.

Any idea?

Thanks

PD: this widget is a great tool! Actually like it :)

single data point selection is not yet implemented (but planned for the future via a data selection model). However you can emulate it yourself via QCPItemTracer and the mouse signals.