Class: QgsStyleSymbolEntity

A symbol entity for QgsStyle databases.

Added in version 3.10.

Class Hierarchy

Inheritance diagram of qgis.core.QgsStyleSymbolEntity

Base classes

QgsStyleEntityInterface

An interface for entities which can be placed in a QgsStyle database.

Methods

symbol

Returns the entity's symbol.

class qgis.core.QgsStyleSymbolEntity[source]

Bases: QgsStyleEntityInterface

__init__(symbol: QgsSymbol | None)

Constructor for QgsStyleSymbolEntity, with the specified symbol.

Ownership of symbol is NOT transferred.

Parameters:

symbol (Optional[QgsSymbol])

__init__(a0: QgsStyleSymbolEntity)
Parameters:

a0 (QgsStyleSymbolEntity)

symbol(self) QgsSymbol | None[source]

Returns the entity’s symbol.

Return type:

Optional[QgsSymbol]