Class: QgsRelationWidgetWrapper¶
-
class
qgis.gui.
QgsRelationWidgetWrapper
(vl: QgsVectorLayer, relation: QgsRelation, editor: QWidget = None, parent: QWidget = None)¶ Bases:
qgis._gui.QgsWidgetWrapper
Constructor for QgsRelationWidgetWrapper
Enums
Methods
The relation for which this wrapper is created.
Defines if a title label should be shown for this widget.
Determines if the “link feature” button should be shown
Determines if the “unlink feature” button should be shown
Sets the visibility of the wrapper’s widget.
Defines if a title label should be shown for this widget.
Determines if the “link feature” button should be shown
Determines if the “unlink feature” button should be shown
Signals
Attributes
-
childEvent
()¶
-
connectNotify
()¶
-
createWidget
(self, parent: QWidget) → QWidget¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
initWidget
(self, editor: QWidget)¶
-
isSignalConnected
()¶
-
receivers
()¶
-
relation
(self) → QgsRelation¶ The relation for which this wrapper is created.
New in version 3.0.
-
sender
()¶
-
senderSignalIndex
()¶
-
setFeature
(self, feature: QgsFeature)¶
-
setShowLabel
(self, showLabel: bool)¶ Defines if a title label should be shown for this widget. Only has an effect after widget() has been called at least once.
New in version 2.18.
-
setShowLinkButton
(self, showLinkButton: bool)¶ Determines if the “link feature” button should be shown
New in version 2.18.
-
setShowUnlinkButton
(self, showUnlinkButton: bool)¶ Determines if the “unlink feature” button should be shown
New in version 2.18.
-
setVisible
(self, visible: bool)¶ Sets the visibility of the wrapper’s widget.
- Parameters
visible – set to true to show widget, false to hide widget
New in version 2.16.
-
showLabel
(self) → bool¶ Defines if a title label should be shown for this widget. Only has an effect after widget() has been called at least once.
New in version 2.18.
-
showLinkButton
(self) → bool¶ Determines if the “link feature” button should be shown
New in version 2.18.
-
showUnlinkButton
(self) → bool¶ Determines if the “unlink feature” button should be shown
New in version 2.18.
-
timerEvent
()¶
-
valid
(self) → bool¶
-