Class: QgsHollowScaleBarRenderer

class qgis.core.QgsHollowScaleBarRenderer

Bases: QgsScaleBarRenderer

Scalebar style that draws a single box with alternating color for the segments, with horizontal lines through alternating segments. AKA “South African” style.

New in version 3.14.

QgsHollowScaleBarRenderer() Constructor for QgsHollowScaleBarRenderer.

QgsHollowScaleBarRenderer(QgsHollowScaleBarRenderer)

Methods

applyDefaultSettings

param settings

clone

rtype

QgsHollowScaleBarRenderer

draw

param context

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

sortKey

rtype

int

visibleName

rtype

str

applyDefaultSettings(self, settings: QgsScaleBarSettings) bool
Parameters

settings (QgsScaleBarSettings) –

Return type

bool

clone(self) QgsHollowScaleBarRenderer
Return type

QgsHollowScaleBarRenderer

draw(self, context: QgsRenderContext, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext)
Parameters
flags(self) QgsScaleBarRenderer.Flags
Return type

QgsScaleBarRenderer.Flags

id(self) str
Return type

str

sortKey(self) int
Return type

int

visibleName(self) str
Return type

str