Class: QgsSymbolConverterContext¶
Represents the context in which a QgsSymbolConverter
conversion occurs.
Added in version 4.2.
List of all members, including inherited members
Methods
Returns a list of errors which occurred during the conversion. |
|
Pushes a error message generated during the conversion. |
|
Pushes a warning message generated during the conversion. |
|
Returns the read-write context associated with the context. |
|
Sets the symbol type hint. |
|
Returns the symbol type hint, or |
|
Returns a list of warnings which occurred during the conversion. |
- class qgis.core.QgsSymbolConverterContext[source]¶
Bases:
object- __init__(rwContext: QgsReadWriteContext)
Constructor for QgsSymbolConverterContext.
The
rwContextobject must exist for the lifetime of this context.- Parameters:
rwContext (QgsReadWriteContext)
- errors(self) list[str][source]¶
Returns a list of errors which occurred during the conversion.
See also
See also
- Return type:
list[str]
- pushError(self, error: str | None)[source]¶
Pushes a
errormessage generated during the conversion.See also
See also
- Parameters:
error (Optional[str])
- pushWarning(self, warning: str | None)[source]¶
Pushes a
warningmessage generated during the conversion.See also
See also
- Parameters:
warning (Optional[str])
- readWriteContext(self) QgsReadWriteContext¶
Returns the read-write context associated with the context.
- Return type:
- setTypeHint(self, hint: Qgis.SymbolType)[source]¶
Sets the symbol type
hint.Set to
Qgis.SymbolType.Hybrid if unknown.See also
- Parameters:
hint (Qgis.SymbolType)
- typeHint(self) Qgis.SymbolType[source]¶
Returns the symbol type hint, or
Qgis.SymbolType.Hybrid if unknown.See also
- Return type: