[英]QML tree view from a model
I'm quite new to QML and I'm struggling to find any information how to render a tree model in a simple way (although horizontally, rather than vertically): 我对QML还是很陌生,我正在努力寻找任何信息以简单的方式(尽管是水平而不是垂直)渲染树模型:
Seems like QML only supports list data structures from models. 似乎QML仅支持来自模型的列表数据结构。 Is there any way to do it?
有什么办法吗?
Figured it out on my own. 我自己弄清楚了。 The trick is to use DelegateModel, Repeater and Row/Column layouts, not TreeView.
诀窍是使用DelegateModel,Repeater和Row / Column布局,而不是TreeView。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.