Class: QgsLayoutViewTriangleRubberBand

class qgis.gui.QgsLayoutViewTriangleRubberBand

Bases: QgsLayoutViewRubberBand

QgsLayoutViewTriangleRubberBand is triangular rubber band for use within QgsLayoutView widgets.

QgsLayoutViewTriangleRubberBand(view: Optional[QgsLayoutView] = None) Constructor for QgsLayoutViewTriangleRubberBand.

Methods

childEvent

connectNotify

create

param view:

customEvent

disconnectNotify

finish

param position:

isSignalConnected

receivers

sender

senderSignalIndex

start

param position:

timerEvent

update

param position:

updateRect

Calculates an updated bounding box rectangle from a original start position and new position.

childEvent(self, a0: QChildEvent | None)
connectNotify(self, signal: QMetaMethod)
create(self, view: QgsLayoutView | None) QgsLayoutViewTriangleRubberBand | None
Parameters:

view (Optional[QgsLayoutView])

Return type:

Optional[QgsLayoutViewTriangleRubberBand]

customEvent(self, a0: QEvent | None)
disconnectNotify(self, signal: QMetaMethod)
finish(self, position: QPointF | QPoint = QPointF(), modifiers: Qt.KeyboardModifiers | Qt.KeyboardModifier = Qt.KeyboardModifiers()) QRectF
Parameters:
  • position (Union[QPointF)

  • modifiers (Union[Qt.KeyboardModifiers)

Return type:

QRectF

isSignalConnected(self, signal: QMetaMethod) bool
receivers(self, signal: PYQT_SIGNAL) int
sender(self) QObject | None
senderSignalIndex(self) int
start(self, position: QPointF | QPoint, modifiers: Qt.KeyboardModifiers | Qt.KeyboardModifier)
Parameters:
  • position (Union[QPointF)

  • modifiers (Union[Qt.KeyboardModifiers)

timerEvent(self, a0: QTimerEvent | None)
update(self, position: QPointF | QPoint, modifiers: Qt.KeyboardModifiers | Qt.KeyboardModifier)
Parameters:
  • position (Union[QPointF)

  • modifiers (Union[Qt.KeyboardModifiers)

updateRect(self, start: QPointF | QPoint, position: QPointF | QPoint, constrainSquare: bool, fromCenter: bool) QRectF

Calculates an updated bounding box rectangle from a original start position and new position. If constrainSquare is True then the bounding box will be forced to a square shape. If fromCenter is True then the original start position will form the center point of the returned rectangle.