常见元素:
Window/ApplicationWindow
item
text
Button
Image
例子:
Image{
anchors.fill: parent;
source: "http://img.xspic.com/img8/153/82/2445977_7.jpg";
fillMode: Image.PreserveAspectFit; //适配照片大小
}
Rectangle
TextInput
例子:
Rectangle{
x:30;
y:80;
width:100;
height: 30;
color:"lightgray";
border.color: "blue";
border.width: 2;
radius: 8;
TextInput
{
id:phoneNumber;
focus: true;
width: 200;
height: 30;
x:10;
y:4;
}
}