QCustomPlot Discussion and Comments

Deselect item by clickingReturn to overview

Hi,

In my application, I have made both axis (ticker, axis, ...) select-able. And it is possible to cancel the selection by clicking somewhere in the graph plot.

But I would like to add the feature that an axis can be deselected by clicking the axis again while it is selected. I haven't found a way to do this.

Does anyone have suggestions or some pointers?

Thanks, Jens

qcustomplot use ctrl+leftbuttuon deselected (default behavior)


Thank you for your reply.

A quick test with ctrl / left buttons didn't work in my application. I probably should check my code, maybe I disabled it somewhere.

You must have QCP::iMultiSelect in your interactions
https://www.qcustomplot.com/documentation/classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5

and have the modifier key set up with setMultiSelectModifier (default is Ctrl key)
https://www.qcustomplot.com/documentation/classQCustomPlot.html#a8fc96e3b5138a06759a2a90c166df516