【发布时间】:2013-11-01 17:03:10
【问题描述】:
这是一个 QML 新手问题。从table view example 我有这样的代码:
Column {
anchors.top: toolbar.bottom
.....
TabView {
id:frame
......
Tab {
title: "XmlListModel"
...
}
Tab { ...
由于 qml 文件很长,我想知道我是否可以嵌套 qml 文件
Column {
anchors.top: toolbar.bottom
.....
TabView {
id:frame
......
<include tab 1 qml file> <-- possible ????? -------
<include tab 2 qml file>
如果这样的include 是不可能的,QML 程序员如何构造他的代码?即使在simple example 中,也已经有太多行无法处理恕我直言。
-- 编辑--
回答后我发现这个值得阅读:
【问题讨论】: