这是一个QML新手问题.从表视图示例我有这样的代码:
Column {
anchors.top: toolbar.bottom
.....
TabView {
id:frame
......
Tab {
title: "XmlListModel"
...
}
Tab { ...
Run Code Online (Sandbox Code Playgroud)
由于qml文件变得很长,我想知道我是否可以嵌套qml文件
Column {
anchors.top: toolbar.bottom
.....
TabView {
id:frame
......
<include tab 1 qml file> <-- possible ????? -------
<include tab 2 qml file>
Run Code Online (Sandbox Code Playgroud)
如果include不可能,QML程序员如何构建他的代码?即使在简单的例子中,已经有太多的线来处理恕我直言.
- 编辑 -
在答案之后我发现这个值得注意: