Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtWidgets »

Classe « QStyledItemDelegate »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QAbstractItemDelegate
                QStyledItemDelegate

Définition

class QStyledItemDelegate(QAbstractItemDelegate):

Description [extrait de QStyledItemDelegate.__doc__]

QStyledItemDelegate(self, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = None)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
EditNextItemPySide2.QtWidgets.QAbstractItemDelegate.EndEditHint.EditNextItem
EditPreviousItemPySide2.QtWidgets.QAbstractItemDelegate.EndEditHint.EditPreviousItem
NoHintPySide2.QtWidgets.QAbstractItemDelegate.EndEditHint.NoHint
RevertModelCachePySide2.QtWidgets.QAbstractItemDelegate.EndEditHint.RevertModelCache
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe35a4f3c0>
SubmitModelCachePySide2.QtWidgets.QAbstractItemDelegate.EndEditHint.SubmitModelCache

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
closeEditor
commitData
createEditor(self, parent: PySide2.QtWidgets.QWidget, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) -> PySide2.QtWidgets.QWidget createEditor(self, parent: PySide2.QtWidgets.QWidget, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) -> PySide2.QtWidgets.QWidget [extrait de createEditor.__doc__]
destroyed
displayText(self, value: typing.Any, locale: PySide2.QtCore.QLocale) -> str displayText(self, value: typing.Any, locale: PySide2.QtCore.QLocale) -> str [extrait de displayText.__doc__]
editorEvent(self, event: PySide2.QtCore.QEvent, model: PySide2.QtCore.QAbstractItemModel, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) -> bool editorEvent(self, event: PySide2.QtCore.QEvent, model: PySide2.QtCore.QAbstractItemModel, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) -> bool [extrait de editorEvent.__doc__]
eventFilter(self, object: PySide2.QtCore.QObject, event: PySide2.QtCore.QEvent) -> bool eventFilter(self, object: PySide2.QtCore.QObject, event: PySide2.QtCore.QEvent) -> bool [extrait de eventFilter.__doc__]
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) [extrait de initStyleOption.__doc__]
itemEditorFactory(self) -> PySide2.QtWidgets.QItemEditorFactory itemEditorFactory(self) -> PySide2.QtWidgets.QItemEditorFactory [extrait de itemEditorFactory.__doc__]
objectNameChanged
paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) [extrait de paint.__doc__]
setEditorData(self, editor: PySide2.QtWidgets.QWidget, index: PySide2.QtCore.QModelIndex) setEditorData(self, editor: PySide2.QtWidgets.QWidget, index: PySide2.QtCore.QModelIndex) [extrait de setEditorData.__doc__]
setItemEditorFactory(self, factory: PySide2.QtWidgets.QItemEditorFactory) setItemEditorFactory(self, factory: PySide2.QtWidgets.QItemEditorFactory) [extrait de setItemEditorFactory.__doc__]
setModelData(self, editor: PySide2.QtWidgets.QWidget, model: PySide2.QtCore.QAbstractItemModel, index: PySide2.QtCore.QModelIndex) setModelData(self, editor: PySide2.QtWidgets.QWidget, model: PySide2.QtCore.QAbstractItemModel, index: PySide2.QtCore.QModelIndex) [extrait de setModelData.__doc__]
sizeHint(self, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QSize sizeHint(self, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
sizeHintChanged
updateEditorGeometry(self, editor: PySide2.QtWidgets.QWidget, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) updateEditorGeometry(self, editor: PySide2.QtWidgets.QWidget, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) [extrait de updateEditorGeometry.__doc__]

Méthodes héritées de la classe QAbstractItemDelegate

__init_subclass__, __subclasshook__, destroyEditor, elidedText, EndEditHint, helpEvent, paintingRoles

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__