Skip to main content

class TreeView

Source

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

Source

compactBelow​

public int compactBelow()

Source

hideProgress​

public void hideProgress()

Source

progressVisible​

public bool progressVisible()

Source

disclosureSize​

public static int disclosureSize()

Source

setCompact​

public void setCompact(bool compact)

setCompactBelow​

public void setCompactBelow(int height)

setProgressVisible​

public void setProgressVisible(bool visible)

showProgress​

public void showProgress()

Source

Reserves room for a progress track on every row. See RowDelegate::setProgressShown for why this belongs to the caller.

rowHeight​

public int rowHeight()

Source

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)