import QtQuick 2.0 | |
Item { | |
width: 640 | |
height: 480 | |
Grid { | |
objectName: "grid" | |
columns: 3 | |
spacing: 4 | |
rowSpacing: 7 | |
columnSpacing: 11 | |
Rectangle { | |
objectName: "one" | |
color: "red" | |
width: 50 | |
height: 50 | |
} | |
Rectangle { | |
objectName: "two" | |
color: "green" | |
width: 20 | |
height: 50 | |
} | |
Rectangle { | |
objectName: "three" | |
color: "blue" | |
width: 50 | |
height: 20 | |
} | |
Rectangle { | |
objectName: "four" | |
color: "cyan" | |
width: 50 | |
height: 50 | |
} | |
Rectangle { | |
objectName: "five" | |
color: "magenta" | |
width: 10 | |
height: 10 | |
} | |
} | |
} |