I have a class that is defined as below:
// Constructor CustomPlot::CustomPlot(QWidget *parent) : QCustomPlot(parent) { // Enable interaction setInteractions(QCP::iRangeDrag | QCP::iRangeZoom); }
My question is, Is there a way to enable the drag using the middle/scroll mouse button instead of the left mouse button?" I could not find it in the documentation and I would appreciate your help.
I tried coding the drag functions myself and assign it to the middle button but it is not as smooth as the original mechanism.
Thank you.