Include another QML file from a QML file

前端 未结 6 1613
天涯浪人
天涯浪人 2020-12-29 21:53

There\'s another question on Stackoverflow about this matter but I don\'t find the accepted solution possible. So I ask again because the old question is out of attention.

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 22:00

    You can directly call:

    Window {
        id: mainWindow
        visible: true
        Feature1{}
    }
    

    like this, to load Feature1.qml

提交回复
热议问题