Class: QgsSpacerWidgetWrapper¶
Wraps a spacer widget.
Added in version 3.30.
Class Hierarchy¶
Base classes¶
Manages an editor widget Widget and wrapper share the same parent |
|
Methods
Returns |
|
Sets a flag to define if the spacer element will contain an horizontal line. |
- class qgis.gui.QgsSpacerWidgetWrapper[source]¶
Bases:
QgsWidgetWrapper
- __init__(layer: QgsVectorLayer | None, editor: QWidget | None = None, parent: QWidget | None = None)
Create a new widget wrapper
- Parameters:
layer (Optional[QgsVectorLayer]) – The vector layer of the form the widget belongs to.
editor (Optional[QWidget] = None) – An editor widget. Can be
None
if one should be autogenerated.parent (Optional[QWidget] = None) – A parent widget for this widget wrapper and the created widget.