diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-07-08 12:27:52 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-07-12 19:14:13 +0000 |
commit | 35f6d97e95ca76462df75acb9d930bd49939c53b (patch) | |
tree | b0c2cc5985f8a58edff540ba18a45d68e382ced0 /examples/qt3d/controls | |
parent | ee9145bdc02aa455c63367c5d0660bc77ab61e16 (diff) |
Improve Controls example
Change-Id: I5e55597a165cac4e55782c92aae07b3e6848d061
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/controls')
-rw-r--r-- | examples/qt3d/controls/main.qml | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/examples/qt3d/controls/main.qml b/examples/qt3d/controls/main.qml index 00874cc9a..c0bf1a637 100644 --- a/examples/qt3d/controls/main.qml +++ b/examples/qt3d/controls/main.qml @@ -46,8 +46,7 @@ Item { Scene3D { id: scene3D - width: Math.min(parent.width, parent.height) - 100 - height: width + anchors.fill: parent anchors.verticalCenter: parent.verticalCenter focus: true aspects: "input" @@ -59,8 +58,8 @@ Item { ColumnLayout { id: colorLayout - anchors.left: scene3D.right - anchors.leftMargin: 5 + anchors.left: parent.horizontalCenter + anchors.leftMargin: parent.width * 0.25 anchors.right: parent.right anchors.rightMargin: 15 anchors.top: scene3D.top @@ -110,10 +109,9 @@ Item { ColumnLayout { id: transformLayout - anchors.left: scene3D.right - anchors.leftMargin: 5 - anchors.right: parent.right - anchors.rightMargin: 15 + + anchors.left: colorLayout.left + anchors.right: colorLayout.right anchors.top: colorLayout.bottom anchors.topMargin: 10 spacing: 5 @@ -158,10 +156,9 @@ Item { ColumnLayout { id: cameraLayout - anchors.left: scene3D.right - anchors.leftMargin: 5 - anchors.right: parent.right - anchors.rightMargin: 15 + + anchors.left: colorLayout.left + anchors.right: colorLayout.right anchors.top: transformLayout.bottom anchors.topMargin: 10 spacing: 5 |