Class: QgsSymbolLayerWidget¶
Class Hierarchy¶
Base classes¶
Subclasses¶
Widget for configuring |
|
|
|
Constructor for QgsCentroidFillSymbolLayerWidget. |
|
Constructor for QgsEllipseSymbolLayerWidget. |
|
A widget for configuring |
|
Widget for configuring |
|
Constructor for QgsFontMarkerSymbolLayerWidget. |
|
Constructor for QgsGeometryGeneratorSymbolLayerWidget. |
|
Constructor for QgsGradientFillSymbolLayerWidget. |
|
Widget for controlling the properties of a |
|
Constructor for QgsLinePatternFillSymbolLayerWidget. |
|
Widget for controlling the properties of a |
|
Widget for configuring |
|
Constructor for QgsMarkerLineSymbolLayerWidget. |
|
Symbol layer widget for the handling of |
|
Constructor for QgsPointPatternFillSymbolLayerWidget. |
|
Widget for controlling the properties of a |
|
Constructor for QgsRasterFillSymbolLayerWidget. |
|
Widget for configuring |
|
Widget for configuring |
|
Constructor for QgsSVGFillSymbolLayerWidget. |
|
Constructor for QgsShapeburstFillSymbolLayerWidget. |
|
Constructor for QgsSimpleFillSymbolLayerWidget. |
|
Constructor for QgsSimpleLineSymbolLayerWidget. |
|
Constructor for QgsSimpleMarkerSymbolLayerWidget. |
|
Constructor for QgsSvgMarkerSymbolLayerWidget. |
|
Constructor for QgsVectorFieldSymbolLayerWidget. |
- class qgis.gui.QgsSymbolLayerWidget(parent: QWidget | None, vl: QgsVectorLayer | None = None)[source]¶
Bases:
QWidget- signal changed[source]¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- 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:
- createExpressionContext(self) QgsExpressionContext[source]¶
- Return type:
- registerDataDefinedButton(self, button: QgsPropertyOverrideButton | None, key: QgsSymbolLayer.Property)[source]¶
Registers a data defined override button. Handles setting up connections for the button and initializing the button to show the correct descriptions and help text for the associated property.
- Parameters:
button (Optional[QgsPropertyOverrideButton])
key (QgsSymbolLayer.Property)
- 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
- setSymbolLayer(self, layer: QgsSymbolLayer | None)[source]¶
- Parameters:
layer (Optional[QgsSymbolLayer])
- signal symbolChanged[source]¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- symbolLayer(self) QgsSymbolLayer | None[source]¶
- Return type:
Optional[QgsSymbolLayer]
- vectorLayer(self) QgsVectorLayer | None[source]¶
Returns the vector layer associated with the widget.
- Return type:
Optional[QgsVectorLayer]