Class: QgsSymbolConverterRegistry¶
A registry of known symbol converters.
QgsSymbolConverterRegistry is not usually directly created,
but rather accessed through
QgsApplication.symbolConverterRegistry().
Added in version 4.2.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Methods
Adds a converter to the registry. |
|
Returns the converter with matching name, or |
|
Returns a list of the registered converter names (IDs). |
|
Removes the converter with matching name. |
- class qgis.core.QgsSymbolConverterRegistry[source]¶
Bases:
QObject- __init__(parent: QObject | None = None)
Creates a new empty symbol converter registry.
QgsSymbolConverterRegistry is not usually directly created, but rather accessed through
QgsApplication.symbolConverterRegistry().- Parameters:
parent (Optional[QObject] = None)
- addConverter(self, converter: QgsAbstractSymbolConverter | None) bool[source]¶
Adds a
converterto the registry.Ownership of the converter is transferred to the registry.
- Return type:
bool
- Returns:
Trueif the converter was successfully added.- Parameters:
converter (Optional[QgsAbstractSymbolConverter])
- converter(self, name: str | None) QgsAbstractSymbolConverter | None[source]¶
Returns the converter with matching
name, orNoneif no matching converter is registered.- Parameters:
name (Optional[str])
- Return type: