Subgroup: Attribute
Class: QgsAttributeTableDelegate¶
-
class
qgis.gui.
QgsAttributeTableDelegate
¶ Bases:
PyQt5.QtWidgets.QItemDelegate
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
Methods
blockSignals
childEvent
children
connectNotify
createEditor
Used to create an editor for when the user tries to customEvent
deleteLater
destroyEditor
disconnect
disconnectNotify
drawBackground
drawCheck
drawDecoration
drawDisplay
drawFocus
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
editorEvent
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] hasClipping
helpEvent
inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
itemEditorFactory
killTimer
metaObject
moveToThread
objectName
paint
Overloads the paint method form the QItemDelegate base class parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
sender
senderSignalIndex
setClipping
setEditorData
Sets data from model into the editor. setFeatureSelectionModel
setItemEditorFactory
setModelData
Sets data from editor back to model. setObjectName
setParent
setProperty
signalsBlocked
sizeHint
startTimer
thread
timerEvent
tr
updateEditorGeometry
Attributes
EditNextItem
EditPreviousItem
NoHint
RevertModelCache
SubmitModelCache
actionColumnItemPainted
Is emitted when an action column item is painted. closeEditor
closeEditor(self, QWidget, QAbstractItemDelegate.EndEditHint = QAbstractItemDelegate.NoHint) [signal] commitData
commitData(self, QWidget) [signal] destroyed
destroyed(self, QObject = None) [signal] objectNameChanged
objectNameChanged(self, str) [signal] sizeHintChanged
sizeHintChanged(self, QModelIndex) [signal] staticMetaObject
-
actionColumnItemPainted
¶ Is emitted when an action column item is painted. The consumer of this signal can initialize the index widget.
Note
This signal is emitted repeatedly whenever the item is being painted. It is the consumers responsibility to check if initialization has already happened before. [signal]
-
childEvent
()¶
-
connectNotify
()¶
-
createEditor
(self, parent: QWidget, option: QStyleOptionViewItem, index: QModelIndex) → QWidget¶ Used to create an editor for when the user tries to change the contents of a cell
-
customEvent
()¶
-
disconnectNotify
()¶
-
drawBackground
()¶
-
drawCheck
()¶
-
drawDecoration
()¶
-
drawDisplay
()¶
-
drawFocus
()¶
-
editorEvent
()¶
-
eventFilter
()¶
-
isSignalConnected
()¶
-
paint
(self, painter: QPainter, option: QStyleOptionViewItem, index: QModelIndex)¶ Overloads the paint method form the QItemDelegate base class
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setEditorData
(self, editor: QWidget, index: QModelIndex)¶ Sets data from model into the editor. Overloads default method
Parameters: - editor – editor which was created by create editor function in this class
- index – index of field which is to be retrieved
-
setFeatureSelectionModel
(self, featureSelectionModel: QgsFeatureSelectionModel)¶
-
setModelData
(self, editor: QWidget, model: QAbstractItemModel, index: QModelIndex)¶ Sets data from editor back to model. Overloads default method
Parameters: - editor – editor which was created by create editor function in this class
- model – model where data should be updated
- index – index of field which is to be modified
-
timerEvent
()¶
-