QAbstractItemView Class Reference
[QtGui module]
Inherits QAbstractScrollArea.
Inherited by QColumnView, QHeaderView, QListView, QTableView and QTreeView.
Types
- enum CursorAction { MoveUp, MoveDown, MoveLeft, MoveRight, ..., MovePrevious }
- enum DragDropMode { NoDragDrop, DragOnly, DropOnly, DragDrop, InternalMove }
- enum DropIndicatorPosition { OnItem, AboveItem, BelowItem, OnViewport }
- enum EditTrigger { NoEditTriggers, CurrentChanged, DoubleClicked, SelectedClicked, ..., AllEditTriggers }
- class EditTriggers
- enum ScrollHint { EnsureVisible, PositionAtTop, PositionAtBottom, PositionAtCenter }
- enum ScrollMode { ScrollPerItem, ScrollPerPixel }
- enum SelectionBehavior { SelectItems, SelectRows, SelectColumns }
- enum SelectionMode { NoSelection, SingleSelection, MultiSelection, ExtendedSelection, ContiguousSelection }
- enum State { NoState, DraggingState, DragSelectingState, EditingState, ..., AnimatingState }
Methods
- __init__ (self, QWidget parent = None)
- bool alternatingRowColors (self)
- int autoScrollMargin (self)
- clearSelection (self)
- closeEditor (self, QWidget, QAbstractItemDelegate.EndEditHint)
- closePersistentEditor (self, QModelIndex)
- commitData (self, QWidget)
- currentChanged (self, QModelIndex, QModelIndex)
- QModelIndex currentIndex (self)
- dataChanged (self, QModelIndex, QModelIndex)
- Qt.DropAction defaultDropAction (self)
- QPoint dirtyRegionOffset (self)
- doItemsLayout (self)
- DragDropMode dragDropMode (self)
- bool dragDropOverwriteMode (self)
- bool dragEnabled (self)
- dragEnterEvent (self, QDragEnterEvent)
- dragLeaveEvent (self, QDragLeaveEvent)
- dragMoveEvent (self, QDragMoveEvent)
- dropEvent (self, QDropEvent)
- DropIndicatorPosition dropIndicatorPosition (self)
- edit (self, QModelIndex)
- bool edit (self, QModelIndex, EditTrigger, QEvent)
- editorDestroyed (self, QObject)
- EditTriggers editTriggers (self)
- bool event (self, QEvent)
- executeDelayedItemsLayout (self)
- focusInEvent (self, QFocusEvent)
- bool focusNextPrevChild (self, bool)
- focusOutEvent (self, QFocusEvent)
- bool hasAutoScroll (self)
- int horizontalOffset (self)
- horizontalScrollbarAction (self, int)
- horizontalScrollbarValueChanged (self, int)
- ScrollMode horizontalScrollMode (self)
- int horizontalStepsPerItem (self)
- QSize iconSize (self)
- QModelIndex indexAt (self, QPoint)
- QWidget indexWidget (self, QModelIndex)
- inputMethodEvent (self, QInputMethodEvent)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery)
- bool isIndexHidden (self, QModelIndex)
- QAbstractItemDelegate itemDelegate (self)
- QAbstractItemDelegate itemDelegate (self, QModelIndex)
- QAbstractItemDelegate itemDelegateForColumn (self, int)
- QAbstractItemDelegate itemDelegateForRow (self, int)
- keyboardSearch (self, QString)
- keyPressEvent (self, QKeyEvent)
- QAbstractItemModel model (self)
- mouseDoubleClickEvent (self, QMouseEvent)
- mouseMoveEvent (self, QMouseEvent)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- QModelIndex moveCursor (self, CursorAction, Qt.KeyboardModifiers)
- openPersistentEditor (self, QModelIndex)
- reset (self)
- resizeEvent (self, QResizeEvent)
- QModelIndex rootIndex (self)
- rowsAboutToBeRemoved (self, QModelIndex, int, int)
- rowsInserted (self, QModelIndex, int, int)
- scheduleDelayedItemsLayout (self)
- scrollDirtyRegion (self, int, int)
- scrollTo (self, QModelIndex, ScrollHint hint = QAbstractItemView.EnsureVisible)
- scrollToBottom (self)
- scrollToTop (self)
- selectAll (self)
- list-of-QModelIndex selectedIndexes (self)
- SelectionBehavior selectionBehavior (self)
- selectionChanged (self, QItemSelection, QItemSelection)
- QItemSelectionModel.SelectionFlags selectionCommand (self, QModelIndex, QEvent event = None)
- SelectionMode selectionMode (self)
- QItemSelectionModel selectionModel (self)
- setAlternatingRowColors (self, bool)
- setAutoScroll (self, bool)
- setAutoScrollMargin (self, int)
- setCurrentIndex (self, QModelIndex)
- setDefaultDropAction (self, Qt.DropAction)
- setDirtyRegion (self, QRegion)
- setDragDropMode (self, DragDropMode)
- setDragDropOverwriteMode (self, bool)
- setDragEnabled (self, bool)
- setDropIndicatorShown (self, bool)
- setEditTriggers (self, EditTriggers)
- setHorizontalScrollMode (self, ScrollMode)
- setHorizontalStepsPerItem (self, int)
- setIconSize (self, QSize)
- setIndexWidget (self, QModelIndex, QWidget)
- setItemDelegate (self, QAbstractItemDelegate)
- setItemDelegateForColumn (self, int, QAbstractItemDelegate)
- setItemDelegateForRow (self, int, QAbstractItemDelegate)
- setModel (self, QAbstractItemModel)
- setRootIndex (self, QModelIndex)
- setSelection (self, QRect, QItemSelectionModel.SelectionFlags)
- setSelectionBehavior (self, SelectionBehavior)
- setSelectionMode (self, SelectionMode)
- setSelectionModel (self, QItemSelectionModel)
- setState (self, State)
- setTabKeyNavigation (self, bool)
- setTextElideMode (self, Qt.TextElideMode)
- setVerticalScrollMode (self, ScrollMode)
- setVerticalStepsPerItem (self, int)
- bool showDropIndicator (self)
- int sizeHintForColumn (self, int)
- QSize sizeHintForIndex (self, QModelIndex)
- int sizeHintForRow (self, int)
- startDrag (self, Qt.DropActions)
- State state (self)
- bool tabKeyNavigation (self)
- Qt.TextElideMode textElideMode (self)
- timerEvent (self, QTimerEvent)
- update (self)
- update (self, QModelIndex)
- updateEditorData (self)
- updateEditorGeometries (self)
- updateGeometries (self)
- int verticalOffset (self)
- verticalScrollbarAction (self, int)
- verticalScrollbarValueChanged (self, int)
- ScrollMode verticalScrollMode (self)
- int verticalStepsPerItem (self)
- QStyleOptionViewItem viewOptions (self)
- bool viewportEvent (self, QEvent)
- QRect visualRect (self, QModelIndex)
- QRegion visualRegionForSelection (self, QItemSelection)
Qt Signals
Detailed Description
Type Documentation
QAbstractItemView.CursorAction
QAbstractItemView.DragDropMode
QAbstractItemView.DropIndicatorPosition
QAbstractItemView.EditTrigger
QAbstractItemView.ScrollHint
QAbstractItemView.ScrollMode
QAbstractItemView.SelectionBehavior
QAbstractItemView.SelectionMode
QAbstractItemView.State
Method Documentation
QAbstractItemView.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QAbstractItemView.alternatingRowColors (self)
int QAbstractItemView.autoScrollMargin (self)
QAbstractItemView.clearSelection (self)
This method is also a Qt slot with the C++ signature void clearSelection().
This method is also a Qt slot with the C++ signature void closeEditor(QWidget *,QAbstractItemDelegate::EndEditHint).
QAbstractItemView.closePersistentEditor (self, QModelIndex)
QAbstractItemView.commitData (self, QWidget)
This method is also a Qt slot with the C++ signature void commitData(QWidget *).
This method is also a Qt slot with the C++ signature void currentChanged(const QModelIndex&,const QModelIndex&).
QModelIndex QAbstractItemView.currentIndex (self)
This method is also a Qt slot with the C++ signature void dataChanged(const QModelIndex&,const QModelIndex&).
Qt.DropAction QAbstractItemView.defaultDropAction (self)
QPoint QAbstractItemView.dirtyRegionOffset (self)
QAbstractItemView.doItemsLayout (self)
This method is also a Qt slot with the C++ signature void doItemsLayout().
DragDropMode QAbstractItemView.dragDropMode (self)
bool QAbstractItemView.dragDropOverwriteMode (self)
bool QAbstractItemView.dragEnabled (self)
QAbstractItemView.dragEnterEvent (self, QDragEnterEvent)
QAbstractItemView.dragLeaveEvent (self, QDragLeaveEvent)
QAbstractItemView.dragMoveEvent (self, QDragMoveEvent)
QAbstractItemView.dropEvent (self, QDropEvent)
DropIndicatorPosition QAbstractItemView.dropIndicatorPosition (self)
QAbstractItemView.edit (self, QModelIndex)
This method is also a Qt slot with the C++ signature void edit(const QModelIndex&).
QAbstractItemView.editorDestroyed (self, QObject)
This method is also a Qt slot with the C++ signature void editorDestroyed(QObject *).
EditTriggers QAbstractItemView.editTriggers (self)
bool QAbstractItemView.event (self, QEvent)
QAbstractItemView.executeDelayedItemsLayout (self)
QAbstractItemView.focusInEvent (self, QFocusEvent)
bool QAbstractItemView.focusNextPrevChild (self, bool)
QAbstractItemView.focusOutEvent (self, QFocusEvent)
bool QAbstractItemView.hasAutoScroll (self)
int QAbstractItemView.horizontalOffset (self)
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemView.horizontalScrollbarAction (self, int)
This method is also a Qt slot with the C++ signature void horizontalScrollbarAction(int).
QAbstractItemView.horizontalScrollbarValueChanged (self, int)
This method is also a Qt slot with the C++ signature void horizontalScrollbarValueChanged(int).
ScrollMode QAbstractItemView.horizontalScrollMode (self)
int QAbstractItemView.horizontalStepsPerItem (self)
QSize QAbstractItemView.iconSize (self)
QModelIndex QAbstractItemView.indexAt (self, QPoint)
This method is abstract and should be reimplemented in any sub-class.
QWidget QAbstractItemView.indexWidget (self, QModelIndex)
QAbstractItemView.inputMethodEvent (self, QInputMethodEvent)
QVariant QAbstractItemView.inputMethodQuery (self, Qt.InputMethodQuery)
bool QAbstractItemView.isIndexHidden (self, QModelIndex)
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemDelegate QAbstractItemView.itemDelegateForColumn (self, int)
QAbstractItemDelegate QAbstractItemView.itemDelegateForRow (self, int)
QAbstractItemView.keyboardSearch (self, QString)
QAbstractItemView.keyPressEvent (self, QKeyEvent)
QAbstractItemView.mouseDoubleClickEvent (self, QMouseEvent)
QAbstractItemView.mouseMoveEvent (self, QMouseEvent)
QAbstractItemView.mousePressEvent (self, QMouseEvent)
QAbstractItemView.mouseReleaseEvent (self, QMouseEvent)
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemView.openPersistentEditor (self, QModelIndex)
QAbstractItemView.reset (self)
This method is also a Qt slot with the C++ signature void reset().
QAbstractItemView.resizeEvent (self, QResizeEvent)
QModelIndex QAbstractItemView.rootIndex (self)
QAbstractItemView.rowsAboutToBeRemoved (self, QModelIndex, int, int)
This method is also a Qt slot with the C++ signature void rowsAboutToBeRemoved(const QModelIndex&,int,int).
QAbstractItemView.rowsInserted (self, QModelIndex, int, int)
This method is also a Qt slot with the C++ signature void rowsInserted(const QModelIndex&,int,int).
QAbstractItemView.scheduleDelayedItemsLayout (self)
QAbstractItemView.scrollDirtyRegion (self, int, int)
QAbstractItemView.scrollTo (self, QModelIndex, ScrollHint hint = QAbstractItemView.EnsureVisible)
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemView.scrollToBottom (self)
This method is also a Qt slot with the C++ signature void scrollToBottom().
QAbstractItemView.scrollToTop (self)
This method is also a Qt slot with the C++ signature void scrollToTop().
QAbstractItemView.selectAll (self)
This method is also a Qt slot with the C++ signature void selectAll().
list-of-QModelIndex QAbstractItemView.selectedIndexes (self)
SelectionBehavior QAbstractItemView.selectionBehavior (self)
This method is also a Qt slot with the C++ signature void selectionChanged(const QItemSelection&,const QItemSelection&).
SelectionMode QAbstractItemView.selectionMode (self)
QItemSelectionModel QAbstractItemView.selectionModel (self)
QAbstractItemView.setAlternatingRowColors (self, bool)
QAbstractItemView.setAutoScroll (self, bool)
QAbstractItemView.setAutoScrollMargin (self, int)
QAbstractItemView.setCurrentIndex (self, QModelIndex)
This method is also a Qt slot with the C++ signature void setCurrentIndex(const QModelIndex&).
QAbstractItemView.setDefaultDropAction (self, Qt.DropAction)
QAbstractItemView.setDirtyRegion (self, QRegion)
QAbstractItemView.setDragDropMode (self, DragDropMode)
QAbstractItemView.setDragDropOverwriteMode (self, bool)
QAbstractItemView.setDragEnabled (self, bool)
QAbstractItemView.setDropIndicatorShown (self, bool)
QAbstractItemView.setEditTriggers (self, EditTriggers)
QAbstractItemView.setHorizontalScrollMode (self, ScrollMode)
QAbstractItemView.setHorizontalStepsPerItem (self, int)
QAbstractItemView.setIconSize (self, QSize)
QAbstractItemView.setIndexWidget (self, QModelIndex, QWidget)
The QWidget argument has it's ownership transferred to Qt.
QAbstractItemView.setItemDelegateForColumn (self, int, QAbstractItemDelegate)
QAbstractItemView.setItemDelegateForRow (self, int, QAbstractItemDelegate)
QAbstractItemView.setRootIndex (self, QModelIndex)
This method is also a Qt slot with the C++ signature void setRootIndex(const QModelIndex&).
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemView.setSelectionBehavior (self, SelectionBehavior)
QAbstractItemView.setSelectionMode (self, SelectionMode)
QAbstractItemView.setSelectionModel (self, QItemSelectionModel)
QAbstractItemView.setState (self, State)
QAbstractItemView.setTabKeyNavigation (self, bool)
QAbstractItemView.setTextElideMode (self, Qt.TextElideMode)
QAbstractItemView.setVerticalScrollMode (self, ScrollMode)
QAbstractItemView.setVerticalStepsPerItem (self, int)
bool QAbstractItemView.showDropIndicator (self)
int QAbstractItemView.sizeHintForColumn (self, int)
QSize QAbstractItemView.sizeHintForIndex (self, QModelIndex)
int QAbstractItemView.sizeHintForRow (self, int)
QAbstractItemView.startDrag (self, Qt.DropActions)
State QAbstractItemView.state (self)
bool QAbstractItemView.tabKeyNavigation (self)
Qt.TextElideMode QAbstractItemView.textElideMode (self)
QAbstractItemView.timerEvent (self, QTimerEvent)
QAbstractItemView.update (self)
This method is also a Qt slot with the C++ signature void update().
QAbstractItemView.update (self, QModelIndex)
This method is also a Qt slot with the C++ signature void update(const QModelIndex&).
QAbstractItemView.updateEditorData (self)
This method is also a Qt slot with the C++ signature void updateEditorData().
QAbstractItemView.updateEditorGeometries (self)
This method is also a Qt slot with the C++ signature void updateEditorGeometries().
QAbstractItemView.updateGeometries (self)
This method is also a Qt slot with the C++ signature void updateGeometries().
int QAbstractItemView.verticalOffset (self)
This method is abstract and should be reimplemented in any sub-class.
QAbstractItemView.verticalScrollbarAction (self, int)
This method is also a Qt slot with the C++ signature void verticalScrollbarAction(int).
QAbstractItemView.verticalScrollbarValueChanged (self, int)
This method is also a Qt slot with the C++ signature void verticalScrollbarValueChanged(int).
ScrollMode QAbstractItemView.verticalScrollMode (self)
int QAbstractItemView.verticalStepsPerItem (self)
bool QAbstractItemView.viewportEvent (self, QEvent)
QRect QAbstractItemView.visualRect (self, QModelIndex)
This method is abstract and should be reimplemented in any sub-class.
QRegion QAbstractItemView.visualRegionForSelection (self, QItemSelection)
This method is abstract and should be reimplemented in any sub-class.
Qt Signal Documentation
void activated (const QModelIndex&)
This is the default overload of this signal.
void clicked (const QModelIndex&)
This is the default overload of this signal.
void doubleClicked (const QModelIndex&)
This is the default overload of this signal.
void entered (const QModelIndex&)
This is the default overload of this signal.
void pressed (const QModelIndex&)
This is the default overload of this signal.
void viewportEntered ()
This is the default overload of this signal.