TableModelColumn QML Type
代表模型中的一列。更多
Import Statement: | import Qt.labs.qmlmodels |
详细说明
支持的角色
TableModelColumn 支持除Qt::InitialSortOrderRole
以外的所有Qt's roles 。角色可通过以下方式访问,例如
text: display required property string display
Qt::DisplayRole | 显示 |
Qt::DecorationRole | 装饰 |
Qt::EditRole | 编辑 |
Qt::ToolTipRole | 工具提示 |
Qt::StatusTipRole | 状态提示 |
Qt::WhatsThisRole | 内容 |
Qt::FontRole | 字体 |
Qt::TextAlignmentRole | 文本对齐方式 |
Qt::BackgroundRole | 背景 |
Qt::ForegroundRole | 前景 |
Qt::CheckStateRole | 检查状态 |
Qt::AccessibleTextRole | 可访问文本 |
Qt::AccessibleDescriptionRole | 可访问描述 |
Qt::SizeHintRole | sizeHintRoleNam |
另请参阅 TableModel 和TableView 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.