Subgroup: Relation
Class: QgsRelationWidgetWrapper¶
-
class
qgis.gui.
QgsRelationWidgetWrapper
(vl: QgsVectorLayer, relation: QgsRelation, editor: QWidget = None, parent: QWidget = None)¶ Bases:
qgis._gui.QgsWidgetWrapper
Constructor for QgsRelationWidgetWrapper
Note
not available in Python bindingsMethods
childEvent
connectNotify
createWidget
customEvent
disconnectNotify
initWidget
isSignalConnected
receivers
relation
The relation for which this wrapper is created. sender
senderSignalIndex
setFeature
setShowLabel
Defines if a title lable should be shown for this widget. setShowLinkButton
Determines if the “link feature” button should be shown setShowUnlinkButton
Determines if the “unlink feature” button should be shown setVisible
Sets the visibility of the wrapper’s widget. showLabel
Defines if a title lable should be shown for this widget. showLinkButton
Determines if the “link feature” button should be shown showUnlinkButton
Determines if the “unlink feature” button should be shown timerEvent
valid
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 lable 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 lable 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¶
-