Hi ghorwin,
Can you just tell me how I can use ctrl to switch between zoom and dragging option ?
I don't understand properly how to use setMousePattern to enable plot zoomer.
Thanks
Added after 1 6 minutes:
I have done this, just for the reference I'll mention it here,
m_zoomer
->setMousePattern
(QwtEventPattern::MouseSelect1,Qt
::LeftButton, Qt
::ControlModifier);
m_zoomer = new QwtPlotZoomer(QwtPlot::xBottom, QwtPlot::yLeft, m_plot->canvas());
m_zoomer->setMousePattern(QwtEventPattern::MouseSelect1,Qt::LeftButton, Qt::ControlModifier);
To copy to clipboard, switch view to plain text mode
Bookmarks