Class: QgsLayoutViewToolTemporaryKeyZoom¶
- class qgis.gui.QgsLayoutViewToolTemporaryKeyZoom(view: QgsLayoutView)¶
Bases:
QgsLayoutViewToolZoom
Constructor for QgsLayoutViewToolTemporaryKeyZoom.
Layout view tool for temporarily zooming a layout while a key is depressed.
Methods
Returns
True
if a mouse press/release operation which started atstartViewPoint
and ended atendViewPoint
should be considered a “click and drag”.- param event
- param event
- param event
Sets the combination of
flags
that will be used for the tool.- activate(self)¶
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- isClickAndDrag(self, startViewPoint: QPoint, endViewPoint: QPoint) → bool¶
Returns
True
if a mouse press/release operation which started atstartViewPoint
and ended atendViewPoint
should be considered a “click and drag”. IfFalse
is returned, the operation should be instead treated as just a click onstartViewPoint
.
- isSignalConnected(self, QMetaMethod) → bool¶
- keyPressEvent(self, event: QKeyEvent)¶
- Parameters
event (QKeyEvent) –
- keyReleaseEvent(self, event: QKeyEvent)¶
- Parameters
event (QKeyEvent) –
- layoutReleaseEvent(self, event: QgsLayoutViewMouseEvent)¶
- Parameters
event (QgsLayoutViewMouseEvent) –
- receivers(self, PYQT_SIGNAL) → int¶
- sender(self) → QObject¶
- senderSignalIndex(self) → int¶
- setFlags(self, flags: Union[QgsLayoutViewTool.Flags, QgsLayoutViewTool.Flag])¶
Sets the combination of
flags
that will be used for the tool.See also
flags()
- timerEvent(self, QTimerEvent)¶