qml定位器和布局

定位器:Column、Row、Grid
布局:ColumnLayout、RowLayout,GridLayout
 
ColumnLayout、RowLayout和Column、Row相比,ColumnLayout和RowLayout具有布局管理能力。
 
比如Layout.fillWidth、Layout.fillHeight,这两个属性可以使元素随父元素的大小变化而变化,对于一般元素这两个属性默认是false,但是对layout而言默认是true。而定位器则无此功能。
 
GridLayout和GridView
GridView、ListView等是Model/View的类,用于显示model中的数据。
posted @ 2017-09-23 00:15  嘎布拉  阅读(479)  评论(0)    收藏  举报