diff options
Diffstat (limited to 'examples/declarative/cppextensions/qgraphicslayouts/layoutItem/layoutItem.qml')
-rw-r--r-- | examples/declarative/cppextensions/qgraphicslayouts/layoutItem/layoutItem.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/layoutItem.qml b/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/layoutItem.qml new file mode 100644 index 0000000..6f91dc9 --- /dev/null +++ b/examples/declarative/cppextensions/qgraphicslayouts/layoutItem/layoutItem.qml @@ -0,0 +1,17 @@ +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" + } +} |