Class: QgsStyleSymbolEntity

class qgis.core.QgsStyleSymbolEntity

Bases: QgsStyleEntityInterface

A symbol entity for QgsStyle databases.

Added in version 3.10.

QgsStyleSymbolEntity(symbol: Optional[QgsSymbol]) Constructor for QgsStyleSymbolEntity, with the specified symbol.

Ownership of symbol is NOT transferred.

QgsStyleSymbolEntity(a0: QgsStyleSymbolEntity)

Methods

symbol

Returns the entity's symbol.

type

rtype:

QgsStyle.StyleEntity

symbol(self) QgsSymbol | None

Returns the entity’s symbol.

Return type:

Optional[QgsSymbol]

type(self) QgsStyle.StyleEntity
Return type:

QgsStyle.StyleEntity