Class: QgsPlotRectangularRubberBand¶
- class qgis.gui.QgsPlotRectangularRubberBand¶
Bases:
QgsPlotRubberBand
QgsPlotRectangularRubberBand
is rectangular rubber band for use withinQgsPlotCanvas
widgets.New in version 3.26.
QgsPlotRectangularRubberBand(canvas:
QgsPlotCanvas
= None) Constructor for QgsPlotRectangularRubberBand.Methods
- param position:
- param position:
- param position:
Calculates an updated bounding box rectangle from a original
start
position and newposition
.- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, 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, QMetaMethod) bool ¶
- receivers(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- start(self, position: QPointF | QPoint, modifiers: Qt.KeyboardModifiers | Qt.KeyboardModifier)¶
- Parameters:
position (Union[QPointF) –
modifiers (Union[Qt.KeyboardModifiers) –
- timerEvent(self, QTimerEvent)¶
- 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 newposition
. IfconstrainSquare
isTrue
then the bounding box will be forced to a square shape. IffromCenter
isTrue
then the originalstart
position will form the center point of the returned rectangle.