QCustomPlot Discussion and Comments

Deselect item by clickingReturn to overview


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

and have the modifier key set up with setMultiSelectModifier (default is Ctrl key)