Skip to main content

class ListView

Source

A virtualised list of item rows. Selection, hover and the focus ring come from the view, so Qt's selection model and the platform's accessibility work without a widget per row.

Inherits from QListView

Functions​

ListView​

public ListView(QWidget * parent)

compactRows​

public bool compactRows()

Source

compactBelow​

public int compactBelow()

Source

hideProgress​

public void hideProgress()

Source

progressVisible​

public bool progressVisible()

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.

resizeEvent​

protected void resizeEvent(QResizeEvent * event)

event​

protected bool event(QEvent * event)