Subgroup: Attribute
Class: QgsAttributeDialog¶
-
class
qgis.gui.
QgsAttributeDialog
(vl: QgsVectorLayer, thepFeature: QgsFeature, featureOwner: bool, parent: QWidget = None, showDialogButtons: bool = True, context: QgsAttributeEditorContext = QgsAttributeEditorContext())¶ Bases:
PyQt5.QtWidgets.QDialog
Create an attribute dialog for a given layer and feature
Parameters: - vl – The layer for which the dialog will be generated
- thepFeature – A feature for which the dialog will be generated
- featureOwner – Set to true, if the dialog should take ownership of the feature
- parent – A parent widget for the dialog
- showDialogButtons – True: Show the dialog buttons accept/cancel
- context –
The context in which this dialog is created
Methods
accept
actionEvent
attributeForm
changeEvent
childEvent
closeEvent
connectNotify
contextMenuEvent
create
customEvent
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
editable
Is this dialog editable? enterEvent
event
Intercept window activate/deactive events to show/hide the highlighted feature. eventFilter
feature
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
metric
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
receivers
reject
resizeEvent
sender
senderSignalIndex
setEditCommandMessage
Sets the edit command message (Undo) that will be used when the dialog is accepted setHighlight
setHighlight setMode
Toggles the form mode. sharedPainter
show
Show the dialog non-blocking. showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent
Signals
Attributes
-
accept
(self)¶
-
actionEvent
()¶
-
attributeForm
(self) → QgsAttributeForm¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
editable
(self) → bool¶ Is this dialog editable?
Returns: returns true, if this dialog was created in an editable manner.
-
enterEvent
()¶
-
event
(self, e: QEvent) → bool¶ Intercept window activate/deactive events to show/hide the highlighted feature.
Parameters: e – The event Returns: The same as the parent QDialog
-
eventFilter
()¶
-
feature
(self) → QgsFeature¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
reject
(self)¶
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setEditCommandMessage
(self, message: str)¶ Sets the edit command message (Undo) that will be used when the dialog is accepted
Parameters: message – The message
-
setHighlight
(self, h: QgsHighlight)¶ setHighlight
Parameters: h – The highlight. Ownership is taken.
-
setMode
(self, mode: QgsAttributeForm.Mode)¶ Toggles the form mode.
Parameters: mode – form mode. For example, if set to QgsAttributeForm.AddFeatureMode, the dialog will be editable even with an invalid feature and will add a new feature when the form is accepted.
-
show
(self)¶ Show the dialog non-blocking. Reparents this dialog to be a child of the dialog form
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶