QgsLayoutViewEllipticalRubberBand class
QgsLayoutViewEllipseRubberBand is elliptical rubber band for use within QgsLayoutView widgets.
Contents
Base classes
- class QgsLayoutViewRubberBand
- QgsLayoutViewRubberBand is an abstract base class for temporary rubber band items in various shapes, for use within QgsLayoutView widgets.
Constructors, destructors, conversion operators
- QgsLayoutViewEllipticalRubberBand(QgsLayoutView* view = nullptr)
- Constructor for QgsLayoutViewEllipticalRubberBand.
Public functions
- auto create(QgsLayoutView* view) const -> QgsLayoutViewEllipticalRubberBand* override
- Creates a new instance of the QgsLayoutViewRubberBand subclass.
- auto finish(QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = nullptr) -> QRectF override
- Called when a rubber band use has finished and the rubber band is no longer required.
- void start(QPointF position, Qt::KeyboardModifiers modifiers) override
- Called when a rubber band should be created at the specified starting position (in layout coordinate space).
- void update(QPointF position, Qt::KeyboardModifiers modifiers) override
- Called when a rubber band should be updated to reflect a temporary ending position (in layout coordinate space).
Function documentation
QRectF QgsLayoutViewEllipticalRubberBand:: finish(QPointF position = QPointF(),
Qt::KeyboardModifiers modifiers = nullptr) override
Called when a rubber band use has finished and the rubber band is no longer required.
Returns the final bounding box of the rubber band.