QML的Window与ApplicationWindow

ApplicationWindow需要导入QtQuick.Controls 
Window需要导入QtQuick.Window 。 
默认不可见,需要设置visible:true才可见。 
主要区别就是ApplicationWindow提供了简单的方式创建程序窗口,因为其有属性menuBar、toolBar、Tabview等属性,可以方便快速创建一个丰富的窗口。

转:https://blog.csdn.net/lc900730/article/details/77751441

posted @ 2018-08-07 17:06  朱小勇  阅读(3479)  评论(0编辑  收藏  举报