Class: QgsActionWidgetWrapper¶
- class qgis.gui.QgsActionWidgetWrapper¶
Bases:
QgsWidgetWrapper
Wraps a button widget to launch a layer action.
Added in version 3.22.
QgsActionWidgetWrapper(layer: Optional[QgsVectorLayer], editor: Optional[QWidget], parent: Optional[QWidget]) Create an action widget wrapper
- Parameters:
layer – The layer on which the feature is.
editor – An editor widget. Can be
None
if one should be autogenerated.parent –
A parent widget
Methods
- param parent:
- param editor:
Sets the
action
.- param enabled:
- param feature:
- rtype:
bool
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- createWidget(self, parent: QWidget | None) QWidget | None ¶
- Parameters:
parent (Optional[QWidget])
- Return type:
Optional[QWidget]
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- initWidget(self, editor: QWidget | None)¶
- Parameters:
editor (Optional[QWidget])
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setEnabled(self, enabled: bool)¶
- Parameters:
enabled (bool)
- setFeature(self, feature: QgsFeature)¶
- Parameters:
feature (QgsFeature)
- timerEvent(self, a0: QTimerEvent | None)¶
- valid(self) bool ¶
- Return type:
bool