Home · All Classes · Modules

QAbstractItemView Class Reference
[QtGui module]

Inherits QAbstractScrollArea.

Inherited by QColumnView, QHeaderView, QListView, QTableView and QTreeView.

Types

Methods

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().

QAbstractItemView.closeEditor (self, QWidget, QAbstractItemDelegate.EndEditHint)

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 *).

QAbstractItemView.currentChanged (self, QModelIndex, QModelIndex)

This method is also a Qt slot with the C++ signature void currentChanged(const QModelIndex&,const QModelIndex&).

QModelIndex QAbstractItemView.currentIndex (self)

QAbstractItemView.dataChanged (self, QModelIndex, QModelIndex)

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&).

bool QAbstractItemView.edit (self, QModelIndex, EditTrigger, QEvent)

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.itemDelegate (self)

QAbstractItemDelegate QAbstractItemView.itemDelegate (self, QModelIndex)

QAbstractItemDelegate QAbstractItemView.itemDelegateForColumn (self, int)

QAbstractItemDelegate QAbstractItemView.itemDelegateForRow (self, int)

QAbstractItemView.keyboardSearch (self, QString)

QAbstractItemView.keyPressEvent (self, QKeyEvent)

QAbstractItemModel QAbstractItemView.model (self)

QAbstractItemView.mouseDoubleClickEvent (self, QMouseEvent)

QAbstractItemView.mouseMoveEvent (self, QMouseEvent)

QAbstractItemView.mousePressEvent (self, QMouseEvent)

QAbstractItemView.mouseReleaseEvent (self, QMouseEvent)

QModelIndex QAbstractItemView.moveCursor (self, CursorAction, Qt.KeyboardModifiers)

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)

QAbstractItemView.selectionChanged (self, QItemSelection, QItemSelection)

This method is also a Qt slot with the C++ signature void selectionChanged(const QItemSelection&,const QItemSelection&).

QItemSelectionModel.SelectionFlags QAbstractItemView.selectionCommand (self, QModelIndex, QEvent event = None)

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.setItemDelegate (self, QAbstractItemDelegate)

QAbstractItemView.setItemDelegateForColumn (self, int, QAbstractItemDelegate)

QAbstractItemView.setItemDelegateForRow (self, int, QAbstractItemDelegate)

QAbstractItemView.setModel (self, QAbstractItemModel)

QAbstractItemView.setRootIndex (self, QModelIndex)

This method is also a Qt slot with the C++ signature void setRootIndex(const QModelIndex&).

QAbstractItemView.setSelection (self, QRect, QItemSelectionModel.SelectionFlags)

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)

QStyleOptionViewItem QAbstractItemView.viewOptions (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.


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0