Class: QgsLineSymbol

class qgis.core.QgsLineSymbol(layers: object = QgsSymbolLayerList())

Bases: qgis._core.QgsSymbol

Methods

clone
cloneLayers
createSimple Create a line symbol with one symbol layer: SimpleLine with specified properties.
dataDefinedWidth Returns data defined width for whole symbol (including all symbol layers).
renderPolyline
renderUsingLayer
renderVertexMarker
setDataDefinedWidth Set data defined width for whole symbol (including all symbol layers).
setWidth
width

Signals

Attributes

clone(self) → QgsLineSymbol
cloneLayers()
createSimple(properties: Dict[str, str]) → QgsLineSymbol

Create a line symbol with one symbol layer: SimpleLine with specified properties. This is a convenience method for easier creation of line symbols.

dataDefinedWidth(self) → QgsProperty

Returns data defined width for whole symbol (including all symbol layers).

Returns:data defined width, or invalid property if size is not set at the line level. Caller takes responsibility for deleting the returned object.

New in version 3.0.

renderPolyline(self, points: QPolygonF, f: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False)
renderUsingLayer()
renderVertexMarker()
setDataDefinedWidth(self, property: QgsProperty)

Set data defined width for whole symbol (including all symbol layers).

New in version 3.0.

setWidth(self, width: float)
width(self) → float