QAbstractItemDelegate Class Reference
[QtGui module]
Inherits QObject.
Inherited by QItemDelegate and QStyledItemDelegate.
Types
- enum EndEditHint { NoHint, EditNextItem, EditPreviousItem, SubmitModelCache, RevertModelCache }
Methods
- __init__ (self, QObject parent = None)
- QWidget createEditor (self, QWidget, QStyleOptionViewItem, QModelIndex)
- bool editorEvent (self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex)
- bool helpEvent (self, QHelpEvent, QAbstractItemView, QStyleOptionViewItem, QModelIndex)
- paint (self, QPainter, QStyleOptionViewItem, QModelIndex)
- setEditorData (self, QWidget, QModelIndex)
- setModelData (self, QWidget, QAbstractItemModel, QModelIndex)
- QSize sizeHint (self, QStyleOptionViewItem, QModelIndex)
- updateEditorGeometry (self, QWidget, QStyleOptionViewItem, QModelIndex)
Static Methods
- QString elidedText (QFontMetrics, int, Qt.TextElideMode, QString)
Qt Signals
Detailed Description
Type Documentation
QAbstractItemDelegate.EndEditHint
Method Documentation
QAbstractItemDelegate.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The QWidget argument, if not None, causes self to be owned by Qt instead of PyQt.
QString QAbstractItemDelegate.elidedText (QFontMetrics, int, Qt.TextElideMode, QString)
This method is also a Qt slot with the C++ signature bool helpEvent(QHelpEvent *,QAbstractItemView *,const QStyleOptionViewItem&,const QModelIndex&).
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemDelegate.setEditorData (self, QWidget, QModelIndex)
This method is abstract and should be reimplemented in any sub-class.
Qt Signal Documentation
void closeEditor (QWidget *,QAbstractItemDelegate::EndEditHint = QAbstractItemDelegate.NoHint)
This is the default overload of this signal.
void commitData (QWidget *)
This is the default overload of this signal.
void sizeHintChanged (const QModelIndex&)
This is the default overload of this signal.