Class: QgsFontMarkerSymbolLayerWidget¶
A widget for controlling the properties of a
QgsFontMarkerSymbolLayer
.

QgsFontMarkerSymbolLayerWidget in a default state¶
Class Hierarchy¶
Base classes¶
Abstract base class for widgets used to configure |
|
Methods
Set the font marker character from char. |
|
Set the font marker character from a text string. |
|
Set stroke color. |
|
Static Methods
Creates a new QgsFontMarkerSymbolLayerWidget. |
- class qgis.gui.QgsFontMarkerSymbolLayerWidget[source]¶
Bases:
QgsSymbolLayerWidget
- __init__(vl: QgsVectorLayer | None, parent: QWidget | None = None)
Constructor for QgsFontMarkerSymbolLayerWidget.
- Parameters:
vl (Optional[QgsVectorLayer]) – associated vector layer
parent (Optional[QWidget] = None) – parent widget
- static create(vl: QgsVectorLayer | None) QgsSymbolLayerWidget | None [source]¶
Creates a new QgsFontMarkerSymbolLayerWidget.
- Parameters:
vl (Optional[QgsVectorLayer]) – associated vector layer
- Return type:
Optional[QgsSymbolLayerWidget]
- setCharacter(self, chr: str)[source]¶
Set the font marker character from char.
- Parameters:
chr (str) – the char
- setCharacterFromText(self, text: str | None)[source]¶
Set the font marker character from a text string.
- Parameters:
text (Optional[str]) – the text string
Added in version 3.8.
- setColor(self, color: QColor | Qt.GlobalColor)[source]¶
- Parameters:
color (Union[QColor, Qt.GlobalColor])