Class: QgsFilledLineSymbolLayer

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

Added in version 3.36.

List of all members, including inherited members

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.

Constructor

__init__

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).

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsFilledLineSymbolLayer. See the FAQ for more details.

clone

subSymbol

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 (QgsFillSymbol|None = None)

virtual clone(self) → QgsFilledLineSymbolLayer | None[source]
Return type:

QgsFilledLineSymbolLayer|None

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

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

Parameters:

properties (dict[str|None, Any] = {})

Return type:

QgsSymbolLayer|None

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)

virtual subSymbol(self) → QgsSymbol | None[source]
Return type:

QgsSymbol|None