Pages
API Documentation
On this page

KColumnHeadersModel QML Type

Exposes a model's horizontal column headers as a list. More...

Detailed Description

Each row represents one column of sourceModel. Its roles return the corresponding horizontal header data from the source model. The additional sort role reports sortOrder for the row selected by sortColumn; it is empty for other rows. Setting these properties does not sort the source model.

Property Documentation

[default: -1] sortColumn : int

The column whose sort role reports sortOrder. A value of -1 leaves the sort role empty for every row.

[default: Qt.AscendingOrder] sortOrder : Qt::SortOrder

The order reported by the sort role for sortColumn.

sourceModel : var

The model whose horizontal column headers are exposed as rows.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.