Class: QgsSymbolConverterContext

Represents the context in which a QgsSymbolConverter conversion occurs.

Added in version 4.2.

List of all members, including inherited members

Methods

errors

Returns a list of errors which occurred during the conversion.

pushError

Pushes a error message generated during the conversion.

pushWarning

Pushes a warning message generated during the conversion.

readWriteContext

Returns the read-write context associated with the context.

setTypeHint

Sets the symbol type hint.

typeHint

Returns the symbol type hint, or Qgis.SymbolType.Hybrid if unknown.

warnings

Returns a list of warnings which occurred during the conversion.

class qgis.core.QgsSymbolConverterContext[source]

Bases: object

__init__(rwContext: QgsReadWriteContext)

Constructor for QgsSymbolConverterContext.

The rwContext object 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

pushError()

See also

warnings()

Return type:

list[str]

pushError(self, error: str | None)[source]

Pushes a error message generated during the conversion.

See also

errors()

See also

pushWarning()

Parameters:

error (Optional[str])

pushWarning(self, warning: str | None)[source]

Pushes a warning message generated during the conversion.

See also

warnings()

See also

pushError()

Parameters:

warning (Optional[str])

readWriteContext(self) QgsReadWriteContext

Returns the read-write context associated with the context.

Return type:

QgsReadWriteContext

setTypeHint(self, hint: Qgis.SymbolType)[source]

Sets the symbol type hint.

Set to Qgis.SymbolType.Hybrid if unknown.

See also

typeHint()

Parameters:

hint (Qgis.SymbolType)

typeHint(self) Qgis.SymbolType[source]

Returns the symbol type hint, or Qgis.SymbolType.Hybrid if unknown.

See also

setTypeHint()

Return type:

Qgis.SymbolType

warnings(self) list[str][source]

Returns a list of warnings which occurred during the conversion.

See also

pushWarning()

See also

errors()

Return type:

list[str]