Class: QgsDoubleBoxScaleBarRenderer

class qgis.core.QgsDoubleBoxScaleBarRenderer

Bases: qgis._core.QgsScaleBarRenderer

Constructor for QgsDoubleBoxScaleBarRenderer.

QgsDoubleBoxScaleBarRenderer(QgsDoubleBoxScaleBarRenderer)

Double box with alternating colors.

New in version 3.0: Enums

Methods

draw
drawDefaultLabels
firstLabelString
firstLabelXOffset
name
segmentPositions
segmentWidths

Signals

Attributes

draw(self, context: QgsRenderContext, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext)
drawDefaultLabels()
firstLabelString()
firstLabelXOffset()
name(self) → str
segmentPositions()
segmentWidths()