Class: QgsLayoutViewToolSelect¶
- class qgis.gui.QgsLayoutViewToolSelect¶
Bases:
QgsLayoutViewTool
Layout view tool for selecting items in the layout.
New in version 3.0.
QgsLayoutViewToolSelect(view:
QgsLayoutView
) Constructor for QgsLayoutViewToolSelect.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:
- param event:
Compute the search tolerance in layout units from the view current scale
Sets the combination of
flags
that will be used for the tool.Sets the a
layout
.- 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 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) –
- 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 ¶
- searchToleranceInLayoutUnits(self) float ¶
Compute the search tolerance in layout units from the view current scale
New in version 3.34.
- Return type:
float
- 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)¶
- wheelEvent(self, event: QWheelEvent)¶
- Parameters:
event (QWheelEvent) –