【发布时间】:2020-10-17 13:56:47
【问题描述】:
在 Qt Quick Controls 1 中,我们可以使用 TableViewColumn 设置模型中不同列的样式:
TableView {
anchors.fill: parent
TableViewColumn {title: "1"; role: "one"; width: 70 }
TableViewColumn {title: "2"; role: "two"; width: 70 }
TableViewColumn {title: "3"; role: "three"; width: 70 }
model: theModel
}
如果TableView 没有更多的TableViewColumn,我们如何在 Qt Quick 2 中获得类似的结果?
【问题讨论】:
标签: qt qml qtquick2 qtquickcontrols2 qtquickcontrols