Class: QgsSymbolsListWidget¶

QgsSymbolsListWidget¶
Class Hierarchy¶
Base classes¶
Methods
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. |
|
Returns the vector layer associated with the widget. |
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. |
|
Signals
Emitted when the symbol is modified in the widget. |
- class qgis.gui.QgsSymbolsListWidget(symbol: QgsSymbol | None, style: QgsStyle | None, menu: QMenu | None, parent: QWidget | None, layer: QgsVectorLayer | None = None)[source]¶
Bases:
QWidget
- context(self) QgsSymbolWidgetContext [source]¶
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
See also
- Return type:
- layer(self) QgsVectorLayer | None [source]¶
Returns the vector layer associated with the widget.
- Return type:
Optional[QgsVectorLayer]
- setContext(self, context: QgsSymbolWidgetContext)[source]¶
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
- Parameters:
context (QgsSymbolWidgetContext) – symbol widget context
See also