QgsLayoutViewTriangleRubberBand class

QgsLayoutViewTriangleRubberBand is triangular rubber band for use within QgsLayoutView widgets.

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

QgsLayoutViewTriangleRubberBand(QgsLayoutView* view = nullptr)
Constructor for QgsLayoutViewTriangleRubberBand.

Public functions

auto create(QgsLayoutView* view) const -> QgsLayoutViewTriangleRubberBand* 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 QgsLayoutViewTriangleRubberBand::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.