W3cubDocs

/Qt 6.9

TableModelColumn QML Type

Represents a column in a model. More...

Import Statement: import Qt.labs.qmlmodels

Detailed Description

Supported Roles

TableModelColumn supports all of Qt's roles, with the exception of Qt::InitialSortOrderRole. Roles can be accessed by as listed below, e.g.

text: display

required property string display
Qt::DisplayRole display
Qt::DecorationRole decoration
Qt::EditRole edit
Qt::ToolTipRole toolTip
Qt::StatusTipRole statusTip
Qt::WhatsThisRole whatsThis
Qt::FontRole font
Qt::TextAlignmentRole textAlignment
Qt::BackgroundRole background
Qt::ForegroundRole foreground
Qt::CheckStateRole checkState
Qt::AccessibleTextRole accessibleText
Qt::AccessibleDescriptionRole accessibleDescription
Qt::SizeHintRole sizeHintRoleNam

See also TableModel and TableView.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qml-qt-labs-qmlmodels-tablemodelcolumn.html