Class: QgsLayoutViewToolSelect

class qgis.gui.QgsLayoutViewToolSelect(view: QgsLayoutView)

Bases: QgsLayoutViewTool

Constructor for QgsLayoutViewToolSelect.

Layout view tool for selecting items in the layout.

New in version 3.0:

Methods

childEvent

connectNotify

customEvent

deactivate

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

keyPressEvent

param event

layoutMoveEvent

param event

layoutPressEvent

param event

layoutReleaseEvent

param event

receivers

sender

senderSignalIndex

setFlags

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

setLayout

Sets the a layout.

timerEvent

wheelEvent

param event

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
deactivate(self)
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
keyPressEvent(self, event: QKeyEvent)
Parameters

event (QKeyEvent) –

layoutMoveEvent(self, event: QgsLayoutViewMouseEvent)
Parameters

event (QgsLayoutViewMouseEvent) –

layoutPressEvent(self, event: QgsLayoutViewMouseEvent)
Parameters

event (QgsLayoutViewMouseEvent) –

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()

setLayout(self, layout: QgsLayout)

Sets the a layout.

Parameters

layout (QgsLayout) –

timerEvent(self, QTimerEvent)
wheelEvent(self, event: QWheelEvent)
Parameters

event (QWheelEvent) –