【发布时间】:2016-06-01 09:23:55
【问题描述】:
我想将水平列表视图作为垂直列表视图的代表。是否可以从 C++ 将不同的模型附加到水平列表视图?
ListView {
id: eventList
model: N (N tells how many horizontal lists are there)
delegate:
ListView {
id: horizontall
model: ?? // How to attach different model from C++ to each horizontal list
orientation: ListView.Horizontal
在 c++ 部分中,我实现了 N 个从 QAbstractlistmodel 派生的 QList 列表
【问题讨论】:
标签: c++ listview model qml qt5