Class: QgsFilledLineSymbolLayer

A line symbol layer type which fills a stroked line with a QgsFillSymbol.

Added in version 3.36.

Class Hierarchy

Inheritance diagram of qgis.core.QgsFilledLineSymbolLayer

Base classes

QgsLineSymbolLayer

Abstract base class for line symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Methods

penCapStyle

Returns the pen cap style used to render the line (e.g. flat, square, round, etc).

penJoinStyle

Returns the pen join style used to render the line (e.g. miter, bevel, round, etc).

setPenCapStyle

Sets the pen cap style used to render the line (e.g. flat, square, round, etc).

setPenJoinStyle

Sets the pen join style used to render the line (e.g. miter, bevel, round, etc).

Static Methods

create

Creates a new QgsFilledLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsFilledLineSymbolLayer.properties() ).

class qgis.core.QgsFilledLineSymbolLayer[source]

Bases: QgsLineSymbolLayer

__init__(width: float = DEFAULT_SIMPLELINE_WIDTH, fillSymbol: QgsFillSymbol | None = None)

Constructor for QgsFilledLineSymbolLayer.

If a fillSymbol is specified, it will be transferred to the symbol layer and used to fill the inside of the stroked line. If no fillSymbol is specified then a default symbol will be used.

Parameters:
  • width (float = DEFAULT_SIMPLELINE_WIDTH)

  • fillSymbol (Optional[QgsFillSymbol] = None)

static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]

Creates a new QgsFilledLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsFilledLineSymbolLayer.properties() ).

Parameters:

properties (Dict[str, Any] = {})

Return type:

Optional[QgsSymbolLayer]

penCapStyle(self) Qt.PenCapStyle[source]

Returns the pen cap style used to render the line (e.g. flat, square, round, etc).

See also

setPenCapStyle()

Return type:

Qt.PenCapStyle

penJoinStyle(self) Qt.PenJoinStyle[source]

Returns the pen join style used to render the line (e.g. miter, bevel, round, etc).

Return type:

Qt.PenJoinStyle

setPenCapStyle(self, style: Qt.PenCapStyle)[source]

Sets the pen cap style used to render the line (e.g. flat, square, round, etc).

See also

penCapStyle()

Parameters:

style (Qt.PenCapStyle)

setPenJoinStyle(self, style: Qt.PenJoinStyle)[source]

Sets the pen join style used to render the line (e.g. miter, bevel, round, etc).

See also

penJoinStyle()

Parameters:

style (Qt.PenJoinStyle)