path: root/examples/datavisualization/qmlscatter
diff options
authorMiikka Heikkinen <>2014-02-20 14:55:33 +0200
committerMiikka Heikkinen <>2014-02-21 08:05:01 +0200
commit73e83d139481f87ec77db0f845b151b9f50d73bd (patch)
tree54722941471f276cfc9e02239bfb3b984b8549f4 /examples/datavisualization/qmlscatter
parent0d36c08c2d3ac71eb7fb307307ae6d0c5f32c0d7 (diff)
Misc fixes
+ Rectangle used as main item in qml examples to make ui consistent + Surface autoaxis adjustment fixes for multiseries case + Qmlsurface example UI tweaks Change-Id: Ie75b0efc08f9a56ca709f079b28865e34caa8641 Reviewed-by: Tomi Korpipää <>
Diffstat (limited to 'examples/datavisualization/qmlscatter')
2 files changed, 3 insertions, 9 deletions
diff --git a/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc b/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc
index 177cf7c1..06dfa8cc 100644
--- a/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc
+++ b/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc
@@ -70,17 +70,11 @@
The last \c import just imports all the qml files in the same directory as our \c {main.qml},
because that's where \c NewButton.qml and \c Data.qml are.
- Then we create our main \c Item and call it \c mainView:
+ Then we create our main \c Rectangle and call it \c mainView:
\snippet qmlscatter/qml/qmlscatter/main.qml 1
- \note The Qt Creator application wizard will set a \c Rectangle item as the main item, which
- is opaque white by default. This doesn't work for an application using Qt Data Visualization graphs,
- because the graphs are rendered behind the other QML elements. When creating a new application,
- you should change the main item type to \c Item instead, which is invisible.
- This way the graph is not covered by the main item.
- Then we'll add another \c Item inside the main \c Item, and call it \c dataView.
+ Then we'll add another \c Item inside the main \c Rectangle, and call it \c dataView.
This will be the item to hold the Scatter3D graph. We'll anchor it to the parent bottom:
\snippet qmlscatter/qml/qmlscatter/main.qml 9
diff --git a/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml b/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml
index beb4ccaa..69cb2834 100644
--- a/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml
+++ b/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml
@@ -24,7 +24,7 @@ import "."
//! [0]
//! [1]
-Item {
+Rectangle {
id: mainView
//! [1]