summaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/layoutItem.qml
blob: 460c564a7c56a611ac819f557be2271f944dfbed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Qt 4.7

LayoutItem {//Sized by the layout
    id: resizable
    minimumSize: "100x100"
    maximumSize: "300x300"
    preferredSize: "100x100"
    Rectangle { color: "yellow"; anchors.fill: parent }
    Rectangle { 
        width: 100; height: 100; 
        anchors.top: parent.top; 
        anchors.right: parent.right;
        color: "green"; 
    }
}