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
Enums
Methods
Is this dialog editable?
Intercept window activate/deactivate events to show/hide the highlighted feature.
Sets the edit command message (Undo) that will be used when the dialog is accepted
setHighlight
Toggles the form mode.
Show the dialog non-blocking.
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/deactivate 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: QgsAttributeEditorContext.Mode)¶ Toggles the form mode.
- Parameters
mode – form mode. For example, if set to QgsAttributeEditorContext.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
()¶