Class: QgsLayoutViewToolTemporaryKeyPan

class qgis.gui.QgsLayoutViewToolTemporaryKeyPan

Bases: QgsLayoutViewTool

Layout view tool for temporarily panning a layout while a key is depressed.

New in version 3.0.

QgsLayoutViewToolTemporaryKeyPan(view: QgsLayoutView) Constructor for QgsLayoutViewToolTemporaryKeyPan.

Methods

activate

childEvent

connectNotify

customEvent

disconnectNotify

isClickAndDrag

Returns True if a mouse press/release operation which started at startViewPoint and ended at endViewPoint should be considered a "click and drag".

isSignalConnected

keyReleaseEvent

param event:

layoutMoveEvent

param event:

receivers

sender

senderSignalIndex

setFlags

Sets the combination of flags that will be used for the tool.

timerEvent

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 at startViewPoint and ended at endViewPoint should be considered a “click and drag”. If False is returned, the operation should be instead treated as just a click on startViewPoint.

isSignalConnected(self, QMetaMethod) bool
keyReleaseEvent(self, event: QKeyEvent)
Parameters:

event (QKeyEvent) –

layoutMoveEvent(self, event: QgsLayoutViewMouseEvent)
Parameters:

event (QgsLayoutViewMouseEvent) –

receivers(self, PYQT_SIGNAL) int
sender(self) QObject
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, QTimerEvent)