Class: QgsLayoutViewToolTemporaryMousePan¶
- class qgis.gui.QgsLayoutViewToolTemporaryMousePan¶
Bases:
QgsLayoutViewTool
Layout view tool for temporarily panning a layout while a mouse button is depressed.
Added in version 3.0.
QgsLayoutViewToolTemporaryMousePan(view: Optional[QgsLayoutView]) Constructor for QgsLayoutViewToolTemporaryMousePan.
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:
Sets the combination of
flags
that will be used for the tool.- activate(self)¶
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: 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, signal: QMetaMethod) bool ¶
- layoutMoveEvent(self, event: QgsLayoutViewMouseEvent | None)¶
- Parameters:
event (Optional[QgsLayoutViewMouseEvent])
- layoutReleaseEvent(self, event: QgsLayoutViewMouseEvent | None)¶
- Parameters:
event (Optional[QgsLayoutViewMouseEvent])
- receivers(self, signal: PYQT_SIGNAL) int ¶
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setFlags(self, flags: QgsLayoutViewTool.Flags | QgsLayoutViewTool.Flag)¶
Sets the combination of
flags
that will be used for the tool.See also
flags()
- timerEvent(self, a0: QTimerEvent | None)¶