zoom
->setMousePattern
( QwtEventPattern::MouseSelect1, Qt
::LeftButton);
// zoom selection zoom
->setMousePattern
( QwtEventPattern::MouseSelect2, Qt
::LeftButton, Qt
::ControlModifier );
// zoom out to full size zoom
->setMousePattern
( QwtEventPattern::MouseSelect3, Qt
::LeftButton, Qt
::AltModifier );
// zoom out to previous size zoom
->setMousePattern
( QwtEventPattern::MouseSelect6, Qt
::LeftButton, Qt
::ControlModifier | Qt
::AltModifier );
// zoom in to nex size zoom
->setKeyPattern
( QwtEventPattern::KeyRedo, Qt
::Key_I, Qt
::ShiftModifier );
zoom
->setKeyPattern
( QwtEventPattern::KeyUndo, Qt
::Key_O, Qt
::ShiftModifier );
//zoom->setObjectName(QStringLiteral("%1").arg(listCurrTabGraphs.count() + 1));
zoom->setZoomBase(true);
zoom->setEnabled(false);
zoom->setEnabled(true);
zoom->canvas()->installEventFilter(this);
zoom->setMousePattern( QwtEventPattern::MouseSelect1, Qt::LeftButton); // zoom selection
zoom->setMousePattern( QwtEventPattern::MouseSelect2, Qt::LeftButton, Qt::ControlModifier ); // zoom out to full size
zoom->setMousePattern( QwtEventPattern::MouseSelect3, Qt::LeftButton, Qt::AltModifier ); // zoom out to previous size
zoom->setMousePattern( QwtEventPattern::MouseSelect6, Qt::LeftButton, Qt::ControlModifier | Qt::AltModifier ); // zoom in to nex size
zoom->setKeyPattern( QwtEventPattern::KeyRedo, Qt::Key_I, Qt::ShiftModifier );
zoom->setKeyPattern( QwtEventPattern::KeyUndo, Qt::Key_O, Qt::ShiftModifier );
zoom->setKeyPattern( QwtEventPattern::KeyHome, Qt::Key_Home );
//zoom->setObjectName(QStringLiteral("%1").arg(listCurrTabGraphs.count() + 1));
zoom->setZoomBase(true);
zoom->setEnabled(false);
zoom->setEnabled(true);
zoom->canvas()->installEventFilter(this);
To copy to clipboard, switch view to plain text mode
Bookmarks