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:
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.
sharedPainter()
show(self)

Show the dialog non-blocking. Reparents this dialog to be a child of the dialog form

showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()