Class: QgsSpacerWidgetWrapper¶
- class qgis.gui.QgsSpacerWidgetWrapper¶
Bases:
QgsWidgetWrapper
Wraps a spacer widget.
New in version 3.30.
QgsSpacerWidgetWrapper(layer:
QgsVectorLayer
, editor: QWidget = None, parent: QWidget = None) Create a new widget wrapper- Parameters:
layer – The vector layer of the form the widget belongs to.
editor – An editor widget. Can be
None
if one should be autogenerated.parent –
A parent widget for this widget wrapper and the created widget.
Methods
- param parent:
Returns
True
if the spacer element will contain an horizontal line.This method should initialize the editor widget with runtime data.
Sets a flag to define if the spacer element will contain an horizontal line.
- param feature:
- rtype:
bool
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- createWidget(self, parent: QWidget) QWidget ¶
- Parameters:
parent (QWidget) –
- Return type:
QWidget
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- drawLine(self) bool ¶
Returns
True
if the spacer element will contain an horizontal line.- Return type:
bool
- initWidget(self, editor: QWidget)¶
This method should initialize the editor widget with runtime data. Fill your comboboxes here.
- Parameters:
editor – The widget which will represent this attribute editor in a form.
- isSignalConnected(self, QMetaMethod) bool ¶
- receivers(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setDrawLine(self, drawLine: bool)¶
Sets a flag to define if the spacer element will contain an horizontal line.
- Parameters:
drawLine (bool) – flag status
- setFeature(self, feature: QgsFeature)¶
- Parameters:
feature (QgsFeature) –
- timerEvent(self, QTimerEvent)¶
- valid(self) bool ¶
- Return type:
bool