What does make sense to me:
magnifier->setMouseButton(Qt::MiddleButton);
QwtPlotMagnifier * magnifier;
magnifier->setMouseButton(Qt::MiddleButton);
To copy to clipboard, switch view to plain text mode
This makes sense. I assign the middle button to the magnifying function.
What doesn't make sense:
QwtPlotPicker * picker;
picker->setMousePattern(QwtEventPattern::MouseSelect2, Qt::RightButton);
To copy to clipboard, switch view to plain text mode
I simply don't understand the event patterns. I want to assign the right mouse button to the picker, but I don't know where the QwtEventPattern::MouseSelect2 fits in.
I see the header that, for instance QwtEventPattern::MouseSelect2
is
/*!
The default setting for 1, 2 and 3 button mice is:
- Qt::LeftButton + Qt::ControlModifier
- Qt::RightButton
- Qt::RightButton
*/
/*!
The default setting for 1, 2 and 3 button mice is:
- Qt::LeftButton + Qt::ControlModifier
- Qt::RightButton
- Qt::RightButton
*/
To copy to clipboard, switch view to plain text mode
but I simply don't know what this means, and how it relates to the buttons I want to assign. (I mean, I know what each individual component is, like Qt::RightButton, but I don't know what the 3 mean collectively).
Bookmarks