Definition at line 58 of file qtreeview.h.
#include <qtreeview.h>

Public Slots |
|
| void | hideColumn (int column) |
| void | showColumn (int column) |
| void | expand (const QModelIndex &index) |
| void | collapse (const QModelIndex &index) |
| void | resizeColumnToContents (int column) |
| void | sortByColumn (int column) |
| void | expandAll () |
| void | collapseAll () |
| void | expandToDepth (int depth) |
Signals |
|
| void | expanded (const QModelIndex &index) |
| void | collapsed (const QModelIndex &index) |
Public Member Functions |
|
| QTreeView (QWidget *parent=0) | |
| ~QTreeView () | |
| void | setModel (QAbstractItemModel *model) |
| void | setRootIndex (const QModelIndex &index) |
| void | setSelectionModel (QItemSelectionModel *selectionModel) |
| QHeaderView * | header () const |
| void | setHeader (QHeaderView *header) |
| int | autoExpandDelay () const |
| void | setAutoExpandDelay (int delay) |
| int | indentation () const |
| void | setIndentation (int i) |
| bool | rootIsDecorated () const |
| void | setRootIsDecorated (bool show) |
| bool | uniformRowHeights () const |
| void | setUniformRowHeights (bool uniform) |
| bool | itemsExpandable () const |
| void | setItemsExpandable (bool enable) |
| bool | expandsOnDoubleClick () const |
| void | setExpandsOnDoubleClick (bool enable) |
| int | columnViewportPosition (int column) const |
| int | columnWidth (int column) const |
| void | setColumnWidth (int column, int width) |
| int | columnAt (int x) const |
| bool | isColumnHidden (int column) const |
| void | setColumnHidden (int column, bool hide) |
| bool | isHeaderHidden () const |
| void | setHeaderHidden (bool hide) |
| bool | isRowHidden (int row, const QModelIndex &parent) const |
| void | setRowHidden (int row, const QModelIndex &parent, bool hide) |
| bool | isFirstColumnSpanned (int row, const QModelIndex &parent) const |
| void | setFirstColumnSpanned (int row, const QModelIndex &parent, bool span) |
| bool | isExpanded (const QModelIndex &index) const |
| void | setExpanded (const QModelIndex &index, bool expand) |
| void | setSortingEnabled (bool enable) |
| bool | isSortingEnabled () const |
| void | setAnimated (bool enable) |
| bool | isAnimated () const |
| void | setAllColumnsShowFocus (bool enable) |
| bool | allColumnsShowFocus () const |
| void | setWordWrap (bool on) |
| bool | wordWrap () const |
| void | keyboardSearch (const QString &search) |
| QRect | visualRect (const QModelIndex &index) const |
| void | scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) |
| QModelIndex | indexAt (const QPoint &p) const |
| QModelIndex | indexAbove (const QModelIndex &index) const |
| QModelIndex | indexBelow (const QModelIndex &index) const |
| void | doItemsLayout () |
| void | reset () |
| void | sortByColumn (int column, Qt::SortOrder order) |
| void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
| void | selectAll () |
Protected Slots |
|
| void | columnResized (int column, int oldSize, int newSize) |
| void | columnCountChanged (int oldCount, int newCount) |
| void | columnMoved () |
| void | reexpand () |
| void | rowsRemoved (const QModelIndex &parent, int first, int last) |
Protected Member Functions |
|
| QTreeView (QTreeViewPrivate &dd, QWidget *parent=0) | |
| void | scrollContentsBy (int dx, int dy) |
| void | rowsInserted (const QModelIndex &parent, int start, int end) |
| void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
| QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) |
| int | horizontalOffset () const |
| int | verticalOffset () const |
| void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command) |
| QRegion | visualRegionForSelection (const QItemSelection &selection) const |
| QModelIndexList | selectedIndexes () const |
| void | timerEvent (QTimerEvent *event) |
| void | paintEvent (QPaintEvent *event) |
| void | drawTree (QPainter *painter, const QRegion ®ion) const |
| virtual void | drawRow (QPainter *painter, const QStyleOptionViewItem &options, const QModelIndex &index) const |
| virtual void | drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &index) const |
| void | mousePressEvent (QMouseEvent *event) |
| void | mouseReleaseEvent (QMouseEvent *event) |
| void | mouseDoubleClickEvent (QMouseEvent *event) |
| void | mouseMoveEvent (QMouseEvent *event) |
| void | keyPressEvent (QKeyEvent *event) |
| void | dragMoveEvent (QDragMoveEvent *event) |
| bool | viewportEvent (QEvent *event) |
| void | updateGeometries () |
| int | sizeHintForColumn (int column) const |
| int | indexRowSizeHint (const QModelIndex &index) const |
| int | rowHeight (const QModelIndex &index) const |
| void | horizontalScrollbarAction (int action) |
| bool | isIndexHidden (const QModelIndex &index) const |
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
Properties |
|
| int | autoExpandDelay |
| int | indentation |
| bool | rootIsDecorated |
| bool | uniformRowHeights |
| bool | itemsExpandable |
| bool | sortingEnabled |
| bool | animated |
| bool | allColumnsShowFocus |
| bool | wordWrap |
| bool | headerHidden |
| bool | expandsOnDoubleClick |
Friends |
|
| class | QAccessibleItemView |
| ~QTreeView | ( | ) |
| void setModel | ( | QAbstractItemModel * | model | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void setRootIndex | ( | const QModelIndex & | index | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void setSelectionModel | ( | QItemSelectionModel * | selectionModel | ) | [virtual] |
| QHeaderView* header | ( | ) | const |
| void setHeader | ( | QHeaderView * | header | ) |
| int autoExpandDelay | ( | ) | const |
| void setAutoExpandDelay | ( | int | delay | ) |
| int indentation | ( | ) | const |
| void setIndentation | ( | int | i | ) |
| bool rootIsDecorated | ( | ) | const |
| void setRootIsDecorated | ( | bool | show | ) |
| bool uniformRowHeights | ( | ) | const |
| void setUniformRowHeights | ( | bool | uniform | ) |
| bool itemsExpandable | ( | ) | const |
| void setItemsExpandable | ( | bool | enable | ) |
| bool expandsOnDoubleClick | ( | ) | const |
| void setExpandsOnDoubleClick | ( | bool | enable | ) |
| int columnViewportPosition | ( | int | column | ) | const |
| int columnWidth | ( | int | column | ) | const |
| void setColumnWidth | ( | int | column, |
| int | width | ||
| ) |
| int columnAt | ( | int | x | ) | const |
| bool isColumnHidden | ( | int | column | ) | const |
| void setColumnHidden | ( | int | column, |
| bool | hide | ||
| ) |
| bool isHeaderHidden | ( | ) | const |
| void setHeaderHidden | ( | bool | hide | ) |
| bool isRowHidden | ( | int | row, |
| const QModelIndex & | parent | ||
| ) | const |
| void setRowHidden | ( | int | row, |
| const QModelIndex & | parent, | ||
| bool | hide | ||
| ) |
| bool isFirstColumnSpanned | ( | int | row, |
| const QModelIndex & | parent | ||
| ) | const |
| void setFirstColumnSpanned | ( | int | row, |
| const QModelIndex & | parent, | ||
| bool | span | ||
| ) |
| bool isExpanded | ( | const QModelIndex & | index | ) | const |
| void setExpanded | ( | const QModelIndex & | index, |
| bool | expand | ||
| ) |
| void setSortingEnabled | ( | bool | enable | ) |
Reimplemented in QTreeWidget.
| bool isSortingEnabled | ( | ) | const |
Reimplemented in QTreeWidget.
| void setAnimated | ( | bool | enable | ) |
| bool isAnimated | ( | ) | const |
| void setAllColumnsShowFocus | ( | bool | enable | ) |
| bool allColumnsShowFocus | ( | ) | const |
| void setWordWrap | ( | bool | on | ) |
| bool wordWrap | ( | ) | const |
| void keyboardSearch | ( | const QString & | search | ) | [virtual] |
Reimplemented from QAbstractItemView.
| QRect visualRect | ( | const QModelIndex & | index | ) | const [virtual] |
Implements QAbstractItemView.
| void scrollTo | ( | const QModelIndex & | index, |
| ScrollHint | hint =
EnsureVisible |
||
| ) | [virtual] |
Implements QAbstractItemView.
| QModelIndex indexAt | ( | const QPoint & | p | ) | const [virtual] |
Implements QAbstractItemView.
| QModelIndex indexAbove | ( | const QModelIndex & | index | ) | const |
| QModelIndex indexBelow | ( | const QModelIndex & | index | ) | const |
| void doItemsLayout | ( | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void reset | ( | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void sortByColumn | ( | int | column, |
| Qt::SortOrder | order | ||
| ) |
| void dataChanged | ( | const QModelIndex & | topLeft, |
| const QModelIndex & | bottomRight | ||
| ) | [virtual] |
Reimplemented from QAbstractItemView.
| void selectAll | ( | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void expanded | ( | const QModelIndex & | index | ) | [signal] |
| void collapsed | ( | const QModelIndex & | index | ) | [signal] |
| void hideColumn | ( | int | column | ) | [slot] |
| void showColumn | ( | int | column | ) | [slot] |
| void expand | ( | const QModelIndex & | index | ) | [slot] |
| void collapse | ( | const QModelIndex & | index | ) | [slot] |
| void resizeColumnToContents | ( | int | column | ) | [slot] |
| void sortByColumn | ( | int | column | ) | [slot] |
| void expandAll | ( | ) | [slot] |
| void collapseAll | ( | ) | [slot] |
| void expandToDepth | ( | int | depth | ) | [slot] |
| void columnResized | ( | int | column, |
| int | oldSize, | ||
| int | newSize | ||
| ) | [protected, slot] |
| void columnCountChanged | ( | int | oldCount, |
| int | newCount | ||
| ) | [protected, slot] |
| void columnMoved | ( | ) | [protected, slot] |
| void reexpand | ( | ) | [protected, slot] |
| void rowsRemoved | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last | ||
| ) | [protected, slot] |
| void scrollContentsBy | ( | int | dx, |
| int | dy | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractScrollArea.
| void rowsInserted | ( | const QModelIndex & | parent, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void rowsAboutToBeRemoved | ( | const QModelIndex & | parent, |
| int | start, | ||
| int | end | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| QModelIndex moveCursor | ( | CursorAction | cursorAction, |
| Qt::KeyboardModifiers | modifiers | ||
| ) | [protected, virtual] |
Implements QAbstractItemView.
| int horizontalOffset | ( | ) | const [protected, virtual] |
Implements QAbstractItemView.
| int verticalOffset | ( | ) | const [protected, virtual] |
Implements QAbstractItemView.
| void setSelection | ( | const QRect & | rect, |
| QItemSelectionModel::SelectionFlags | command | ||
| ) | [protected, virtual] |
Implements QAbstractItemView.
| QRegion visualRegionForSelection | ( | const QItemSelection & | selection | ) | const [protected, virtual] |
Implements QAbstractItemView.
| QModelIndexList selectedIndexes | ( | ) | const [protected, virtual] |
Reimplemented from QAbstractItemView.
| void timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractScrollArea.
| virtual void drawRow | ( | QPainter * | painter, |
| const QStyleOptionViewItem & | options, | ||
| const QModelIndex & | index | ||
| ) | const [protected, virtual] |
| virtual void drawBranches | ( | QPainter * | painter, |
| const QRect & | rect, | ||
| const QModelIndex & | index | ||
| ) | const [protected, virtual] |
| void mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| bool viewportEvent | ( | QEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void updateGeometries | ( | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| int sizeHintForColumn | ( | int | column | ) | const [protected, virtual] |
Reimplemented from QAbstractItemView.
| int indexRowSizeHint | ( | const QModelIndex & | index | ) | const [protected] |
| int rowHeight | ( | const QModelIndex & | index | ) | const [protected] |
| void horizontalScrollbarAction | ( | int | action | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| bool isIndexHidden | ( | const QModelIndex & | index | ) | const [protected, virtual] |
Implements QAbstractItemView.
| void selectionChanged | ( | const QItemSelection & | selected, |
| const QItemSelection & | deselected | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void currentChanged | ( | const QModelIndex & | current, |
| const QModelIndex & | previous | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
friend class QAccessibleItemView
[friend] |
Definition at line 221 of file qtreeview.h.
int autoExpandDelay [read,
write] |
Definition at line 61 of file qtreeview.h.
int indentation [read, write] |
Definition at line 62 of file qtreeview.h.
bool rootIsDecorated [read,
write] |
Definition at line 63 of file qtreeview.h.
bool uniformRowHeights [read,
write] |
Definition at line 64 of file qtreeview.h.
bool itemsExpandable [read,
write] |
Definition at line 65 of file qtreeview.h.
bool sortingEnabled [read,
write] |
Definition at line 66 of file qtreeview.h.
bool animated [read, write] |
Definition at line 67 of file qtreeview.h.
bool allColumnsShowFocus [read,
write] |
Definition at line 68 of file qtreeview.h.
bool wordWrap [read, write] |
Definition at line 69 of file qtreeview.h.
bool headerHidden [read,
write] |
Definition at line 70 of file qtreeview.h.
bool expandsOnDoubleClick [read,
write] |
Definition at line 71 of file qtreeview.h.