Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | Friends

QTreeView Class Reference

Search for all occurrences

Detailed Description

Definition at line 58 of file qtreeview.h.

#include <qtreeview.h>

Inheritance diagram for QTreeView:
Inheritance graph
[legend]

List of all members.

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 &region) 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 &current, 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

Constructor & Destructor Documentation

QTreeView ( QWidget parent = 0 ) [explicit]
~QTreeView ( )
QTreeView ( QTreeViewPrivate &  dd,
QWidget parent = 0 
) [protected]

Member Function Documentation

void setModel ( QAbstractItemModel model ) [virtual]
void setRootIndex ( const QModelIndex index ) [virtual]
void setSelectionModel ( QItemSelectionModel selectionModel ) [virtual]

Reimplemented from QAbstractItemView.

Reimplemented in QTreeWidget.

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 ) [virtual]
QRect visualRect ( const QModelIndex index ) const [virtual]
void scrollTo ( const QModelIndex index,
ScrollHint  hint = EnsureVisible 
) [virtual]
QModelIndex indexAt ( const QPoint p ) const [virtual]
QModelIndex indexAbove ( const QModelIndex index ) const
QModelIndex indexBelow ( const QModelIndex index ) const
void doItemsLayout ( ) [virtual]
void reset ( ) [virtual]
void sortByColumn ( int  column,
Qt::SortOrder  order 
)
void dataChanged ( const QModelIndex topLeft,
const QModelIndex bottomRight 
) [virtual]
void selectAll ( ) [virtual]
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]
void rowsInserted ( const QModelIndex parent,
int  start,
int  end 
) [protected, virtual]
void rowsAboutToBeRemoved ( const QModelIndex parent,
int  start,
int  end 
) [protected, virtual]
QModelIndex moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
) [protected, virtual]
int horizontalOffset ( ) const [protected, virtual]
int verticalOffset ( ) const [protected, virtual]
void setSelection ( const QRect rect,
QItemSelectionModel::SelectionFlags  command 
) [protected, virtual]
QRegion visualRegionForSelection ( const QItemSelection selection ) const [protected, virtual]
QModelIndexList selectedIndexes ( ) const [protected, virtual]
void timerEvent ( QTimerEvent event ) [protected, virtual]
void paintEvent ( QPaintEvent event ) [protected, virtual]
void drawTree ( QPainter painter,
const QRegion region 
) const [protected]
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]
void mouseReleaseEvent ( QMouseEvent event ) [protected, virtual]
void mouseDoubleClickEvent ( QMouseEvent event ) [protected, virtual]
void mouseMoveEvent ( QMouseEvent event ) [protected, virtual]
void keyPressEvent ( QKeyEvent event ) [protected, virtual]
void dragMoveEvent ( QDragMoveEvent event ) [protected, virtual]
bool viewportEvent ( QEvent event ) [protected, virtual]
void updateGeometries ( ) [protected, virtual]
int sizeHintForColumn ( int  column ) const [protected, virtual]
int indexRowSizeHint ( const QModelIndex index ) const [protected]
int rowHeight ( const QModelIndex index ) const [protected]
void horizontalScrollbarAction ( int  action ) [protected, virtual]
bool isIndexHidden ( const QModelIndex index ) const [protected, virtual]
void selectionChanged ( const QItemSelection selected,
const QItemSelection deselected 
) [protected, virtual]
void currentChanged ( const QModelIndex current,
const QModelIndex previous 
) [protected, virtual]

Friends And Related Function Documentation

friend class QAccessibleItemView [friend]

Definition at line 221 of file qtreeview.h.


Property Documentation

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.


The documentation for this class was generated from the following file:

QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView
QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView QTreeView