Flow布局和Grid布局有点类似,但是Flow没有行列属性, 他会自动根绝宽高来计算item的行列。
import QtQuick 2.2
Rectangle{
width: 360;
height: 240;
color:"#eeeeee";
id: rootItem;
Text{
id: centerText;
text:"A Signal Text.";
anchors.horizontalCenter: parent.horizontalCenter;
anchors.top: parent.top;
anchors.topMargin: 4;
font.pixelSize: 24;
font.bold: true;
}
function setTextColor(clr){
centerText.color =