What does make sense to me:

Qt Code:
  1. QwtPlotMagnifier * magnifier;
  2. 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:
Qt Code:
  1. QwtPlotPicker * picker;
  2. 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
Qt Code:
  1. /*!
  2.   The default setting for 1, 2 and 3 button mice is:
  3.  
  4.   - Qt::LeftButton + Qt::ControlModifier
  5.   - Qt::RightButton
  6.   - Qt::RightButton
  7.   */
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).