Class: Qgs3DSymbolWidget

Base class for 3D symbol configuration widgets.

Added in version 3.16.

Class Hierarchy

Inheritance diagram of qgis.gui.Qgs3DSymbolWidget

Base classes

QWidget

QObject

QPaintDevice

Methods

setSymbol

Sets the symbol to show in the widget.

symbol

Returns a new instance of the symbol defined by the widget.

symbolType

Returns the symbol type handled by the widget.

Signals

changed

Emitted when the symbol is changed.

class qgis.gui.Qgs3DSymbolWidget[source]

Bases: QWidget

__init__(parent: QWidget | None)

Constructor for Qgs3DSymbolWidget with the specified parent widget.

Parameters:

parent (Optional[QWidget])

signal changed[source]

Emitted when the symbol is changed.

setSymbol(self, symbol: QgsAbstract3DSymbol | None, layer: QgsVectorLayer | None)[source]

Sets the symbol to show in the widget.

Parameters:
symbol(self) QgsAbstract3DSymbol | None[source]

Returns a new instance of the symbol defined by the widget.

Caller takes ownership of the returned symbol.

Return type:

Optional[QgsAbstract3DSymbol]

symbolType(self) str[source]

Returns the symbol type handled by the widget.

Return type:

str