
Class: QgsRubberBand - QGIS
Dec 7, 2025 · The QgsRubberBand class provides a transparent overlay widget for tracking the mouse while drawing polylines or polygons. Inheritance diagram of qgis.gui.QgsRubberBand. …
QGIS-Code-Examples/5_using_rubber_band_with_canvas/tutorial5 …
The QgsRubberBand class lets you draw lines and polygons on top of the map canvas, without them belonging to any data layer. This is typically useful for digitising and annotating maps.
QgsRubberBand | PyQGIS samples - GitHub Pages
from qgis.gui import QgsRubberBand. from qgis.utils import iface. # To show a polyline . # To show a polygon . # Customize rubber band . # Remove both rubber band items # …
TypeError: QgsRubberBand(): argument 2 has unexpected type …
Mar 21, 2023 · The problem is QgsRubberBand was changed in recent versions of QGIS. You have to use an old version of Qgis with this plugin (3.16 seems to work), wait for the developer …
QGIS API Documentation: QgsRubberBand Class Reference
The QgsRubberBand class provides a transparent overlay widget for tracking the mouse while drawing polylines or polygons. Definition at line 52 of file qgsrubberband.h.
Exploring the QgsRubberBand class - Mastering Geospatial …
Exploring the QgsRubberBand class A rubber band is a graphical canvas item that can be used to draw geometry elements on the canvas, for example, points, lines, or polygons.
Move polygon in QGIS canvas using QgsRubberband · GitHub
Move polygon in QGIS canvas using QgsRubberband. GitHub Gist: instantly share code, notes, and snippets.
QgsRubberBand class | QGIS API Documentation - GitHub Pages
Jan 8, 2013 · void QgsRubberBand:: setSecondaryStrokeColor (const QColor& color) Sets a secondary stroke color for the rubberband which will be drawn under the main stroke color.
How to create and remove multiple QgsRubberBands in PyQGIS?
May 5, 2015 · The second argument to QgsRubberBand should be a geometry type, such as QGis.Polygon.
qgis - Labelling a rubber band (QgsRubberBand) - Geographic …
Aug 30, 2018 · Is it possible to label a rubber band (or edit the text annotations) like in this picture? The recent addition of the annotations feature in QGIS 3.22 allows to place labels …