diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2018-04-10 10:53:12 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2018-04-10 09:08:18 +0000 |
commit | 165c768306357ace7c6a52e72c9c4c883c59de0c (patch) | |
tree | 6d7afd2a5defd4fdd00624a75226a9e5ca770781 /examples | |
parent | f61c26916edf9944ed1dd465f031620a80e98597 (diff) |
qmlchart example: Anchor content to window sizev5.11.0-beta4
Without the anchor the example breaks as soon as the window is
resized.
Change-Id: I6476d8891745e969c06d3e943e8067f5e2191350
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/charts/qmlchart/qml/qmlchart/main.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/charts/qmlchart/qml/qmlchart/main.qml b/examples/charts/qmlchart/qml/qmlchart/main.qml index e2e683d9..9d0f0712 100644 --- a/examples/charts/qmlchart/qml/qmlchart/main.qml +++ b/examples/charts/qmlchart/qml/qmlchart/main.qml @@ -36,6 +36,7 @@ Item { height: 400 MainForm { + anchors.fill: parent // Hide the default info text once view changes away from the first view onCurrentIndexChanged: { if (info.opacity > 0.0) { |