Class: QgsFilledLineSymbolLayer¶
A line symbol layer type which fills a stroked line with a
QgsFillSymbol
.
Added in version 3.36.
Class Hierarchy¶
Base classes¶
Abstract base class for line symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Returns the pen cap style used to render the line (e.g. flat, square, round, etc). |
|
Returns the pen join style used to render the line (e.g. miter, bevel, round, etc). |
|
Sets the pen cap style used to render the line (e.g. flat, square, round, etc). |
|
Sets the pen join style used to render the line (e.g. miter, bevel, round, etc). |
Static Methods
Creates a new |
- 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 nofillSymbol
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 theproperties
map (corresponding to the output fromQgsFilledLineSymbolLayer.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
- 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).
See also
- 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
- Parameters:
style (Qt.PenCapStyle)