diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-28 04:13:57 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-28 04:13:57 (GMT) |
commit | 57a76a94e5b60c5c7c82ec86bea4f206f6f08f4e (patch) | |
tree | 79beb34994de19b7fd8153c09a87dc1bc852d77e /doc/src/snippets/declarative/graphicswidgets/main.qml | |
parent | 999bd1a29cd21b1ef28d8551a5dedf34ec9e1de3 (diff) | |
parent | e433864cf2236d1445ceff89417b2a2fa90cd4a4 (diff) | |
download | Qt-57a76a94e5b60c5c7c82ec86bea4f206f6f08f4e.zip Qt-57a76a94e5b60c5c7c82ec86bea4f206f6f08f4e.tar.gz Qt-57a76a94e5b60c5c7c82ec86bea4f206f6f08f4e.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc/src/snippets/declarative/graphicswidgets/main.qml')
-rw-r--r-- | doc/src/snippets/declarative/graphicswidgets/main.qml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/graphicswidgets/main.qml b/doc/src/snippets/declarative/graphicswidgets/main.qml new file mode 100644 index 0000000..ffcf79d --- /dev/null +++ b/doc/src/snippets/declarative/graphicswidgets/main.qml @@ -0,0 +1,32 @@ +import Qt 4.7 +import Qt.widgets 4.7 + +Rectangle { + width: 200 + height: 200 + + RedSquare { + id: square + width: 80 + height: 80 + } + + BlueCircle { + anchors.left: square.right + width: 80 + height: 80 + } + + QGraphicsWidget { + anchors.top: square.bottom + size.width: 80 + size.height: 80 + layout: QGraphicsLinearLayout { + LayoutItem { + preferredSize: "100x100" + Rectangle { color: "yellow"; anchors.fill: parent } + } + } + } +} + |