class TreeView
The same rows for nested content, with a disclosure affordance taken from the model's own expansion state rather than a second copy of it.
Inherits from QTreeView
Functions
TreeView
public TreeView(QWidget * parent)
compactRows
public bool compactRows()
compactBelow
public int compactBelow()
hideProgress
public void hideProgress()
progressVisible
public bool progressVisible()
disclosureSize
public static int disclosureSize()
setCompact
public void setCompact(bool compact)
setCompactBelow
public void setCompactBelow(int height)
setProgressVisible
public void setProgressVisible(bool visible)
showProgress
public void showProgress()
Reserves room for a progress track on every row. See RowDelegate::setProgressShown for why this belongs to the caller.
rowHeight
public int rowHeight()
The height one row occupies at the current density.
visibleRowRects
public QList<QRect> visibleRowRects()
The rectangles of the rows on screen, in order, for a test or a hit check.
disclosureRect
public QRect disclosureRect(const QModelIndex & index)
The affordance for a row, empty when the row has no children. Clicking it toggles the model.
mousePressEvent
protected void mousePressEvent(QMouseEvent * event)
resizeEvent
protected void resizeEvent(QResizeEvent * event)
event
protected bool event(QEvent * event)