表示模型中的列。 更多...
import 语句: | import Qt.labs.qmlmodels |
TableModelColumn 支持所有
Qt 角色
,除了
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 |
另请参阅 TableModel and TableView .