Home · All Classes · Modules

QTreeView Class Reference
[QtGui module]

Inherits QAbstractItemView.

Inherited by QHelpContentWidget and QTreeWidget.

Methods

Qt Signals


Detailed Description


Method Documentation

QTreeView.__init__ (self, QWidget parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

bool QTreeView.allColumnsShowFocus (self)

int QTreeView.autoExpandDelay (self)

QTreeView.collapse (self, QModelIndex)

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

QTreeView.collapseAll (self)

This method is also a Qt slot with the C++ signature void collapseAll().

int QTreeView.columnAt (self, int)

QTreeView.columnCountChanged (self, int, int)

This method is also a Qt slot with the C++ signature void columnCountChanged(int,int).

QTreeView.columnMoved (self)

This method is also a Qt slot with the C++ signature void columnMoved().

QTreeView.columnResized (self, int, int, int)

This method is also a Qt slot with the C++ signature void columnResized(int,int,int).

int QTreeView.columnViewportPosition (self, int)

int QTreeView.columnWidth (self, int)

QTreeView.currentChanged (self, QModelIndex, QModelIndex)

QTreeView.dataChanged (self, QModelIndex, QModelIndex)

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

QTreeView.doItemsLayout (self)

QTreeView.dragMoveEvent (self, QDragMoveEvent)

QTreeView.drawBranches (self, QPainter, QRect, QModelIndex)

QTreeView.drawRow (self, QPainter, QStyleOptionViewItem, QModelIndex)

QTreeView.drawTree (self, QPainter, QRegion)

QTreeView.expand (self, QModelIndex)

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

QTreeView.expandAll (self)

This method is also a Qt slot with the C++ signature void expandAll().

bool QTreeView.expandsOnDoubleClick (self)

QTreeView.expandToDepth (self, int)

This method is also a Qt slot with the C++ signature void expandToDepth(int).

QHeaderView QTreeView.header (self)

QTreeView.hideColumn (self, int)

This method is also a Qt slot with the C++ signature void hideColumn(int).

int QTreeView.horizontalOffset (self)

QTreeView.horizontalScrollbarAction (self, int)

int QTreeView.indentation (self)

QModelIndex QTreeView.indexAbove (self, QModelIndex)

QModelIndex QTreeView.indexAt (self, QPoint)

QModelIndex QTreeView.indexBelow (self, QModelIndex)

int QTreeView.indexRowSizeHint (self, QModelIndex)

bool QTreeView.isAnimated (self)

bool QTreeView.isColumnHidden (self, int)

bool QTreeView.isExpanded (self, QModelIndex)

bool QTreeView.isFirstColumnSpanned (self, int, QModelIndex)

bool QTreeView.isHeaderHidden (self)

bool QTreeView.isIndexHidden (self, QModelIndex)

bool QTreeView.isRowHidden (self, int, QModelIndex)

bool QTreeView.isSortingEnabled (self)

bool QTreeView.itemsExpandable (self)

QTreeView.keyboardSearch (self, QString)

QTreeView.keyPressEvent (self, QKeyEvent)

QTreeView.mouseDoubleClickEvent (self, QMouseEvent)

QTreeView.mouseMoveEvent (self, QMouseEvent)

QTreeView.mousePressEvent (self, QMouseEvent)

QTreeView.mouseReleaseEvent (self, QMouseEvent)

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

QTreeView.paintEvent (self, QPaintEvent)

QTreeView.reexpand (self)

This method is also a Qt slot with the C++ signature void reexpand().

QTreeView.reset (self)

QTreeView.resizeColumnToContents (self, int)

This method is also a Qt slot with the C++ signature void resizeColumnToContents(int).

bool QTreeView.rootIsDecorated (self)

int QTreeView.rowHeight (self, QModelIndex)

QTreeView.rowsAboutToBeRemoved (self, QModelIndex, int, int)

QTreeView.rowsInserted (self, QModelIndex, int, int)

QTreeView.rowsRemoved (self, QModelIndex, int, int)

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

QTreeView.scrollContentsBy (self, int, int)

QTreeView.scrollTo (self, QModelIndex, QAbstractItemView.ScrollHint hint = QAbstractItemView.EnsureVisible)

QTreeView.selectAll (self)

This method is also a Qt slot with the C++ signature void selectAll().

list-of-QModelIndex QTreeView.selectedIndexes (self)

QTreeView.selectionChanged (self, QItemSelection, QItemSelection)

QTreeView.setAllColumnsShowFocus (self, bool)

QTreeView.setAnimated (self, bool)

QTreeView.setAutoExpandDelay (self, int)

QTreeView.setColumnHidden (self, int, bool)

QTreeView.setColumnWidth (self, int, int)

QTreeView.setExpanded (self, QModelIndex, bool)

QTreeView.setExpandsOnDoubleClick (self, bool)

QTreeView.setFirstColumnSpanned (self, int, QModelIndex, bool)

QTreeView.setHeader (self, QHeaderView)

The QHeaderView argument has it's ownership transferred to Qt.

QTreeView.setHeaderHidden (self, bool)

QTreeView.setIndentation (self, int)

QTreeView.setItemsExpandable (self, bool)

QTreeView.setModel (self, QAbstractItemModel)

QTreeView.setRootIndex (self, QModelIndex)

QTreeView.setRootIsDecorated (self, bool)

QTreeView.setRowHidden (self, int, QModelIndex, bool)

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

QTreeView.setSelectionModel (self, QItemSelectionModel)

QTreeView.setSortingEnabled (self, bool)

QTreeView.setUniformRowHeights (self, bool)

QTreeView.setWordWrap (self, bool)

QTreeView.showColumn (self, int)

This method is also a Qt slot with the C++ signature void showColumn(int).

int QTreeView.sizeHintForColumn (self, int)

QTreeView.sortByColumn (self, int)

This method is also a Qt slot with the C++ signature void sortByColumn(int).

QTreeView.sortByColumn (self, int, Qt.SortOrder)

QTreeView.timerEvent (self, QTimerEvent)

bool QTreeView.uniformRowHeights (self)

QTreeView.updateGeometries (self)

int QTreeView.verticalOffset (self)

bool QTreeView.viewportEvent (self, QEvent)

QRect QTreeView.visualRect (self, QModelIndex)

QRegion QTreeView.visualRegionForSelection (self, QItemSelection)

bool QTreeView.wordWrap (self)


Qt Signal Documentation

void collapsed (const QModelIndex&)

This is the default overload of this signal.

void expanded (const QModelIndex&)

This is the default overload of this signal.


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