diff options
author | Mika Salmela <mika.salmela@digia.com> | 2013-12-20 12:03:59 +0200 |
---|---|---|
committer | Mika Salmela <mika.salmela@digia.com> | 2013-12-20 12:05:37 +0200 |
commit | eb3d0514ca886db33776522ea00f27b69bc86ad1 (patch) | |
tree | 3439287f6a70f681c5c9a08c77ec1b4342a24768 /examples/qmlscatter | |
parent | 07aba602fc82ac31684988f8e8e22521d2b3c982 (diff) | |
parent | e895c5085f6097983bdd617c39ea5184541d6c4d (diff) |
Merge branch 'develop'
Change-Id: I7408ac3b14c3a9484d28f8c08eece6210a44025e
Diffstat (limited to 'examples/qmlscatter')
-rw-r--r-- | examples/qmlscatter/doc/src/qmlscatter.qdoc | 7 | ||||
-rw-r--r-- | examples/qmlscatter/qml/qmlscatter/main.qml | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/qmlscatter/doc/src/qmlscatter.qdoc b/examples/qmlscatter/doc/src/qmlscatter.qdoc index b0f1fd1f..06719ffc 100644 --- a/examples/qmlscatter/doc/src/qmlscatter.qdoc +++ b/examples/qmlscatter/doc/src/qmlscatter.qdoc @@ -86,10 +86,15 @@ 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, call it \c mainView and set it visible: + Then we create our main \c Item and call it \c mainView: \snippet ../examples/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 us, because the graphs are rendered behind the other + QML elements. We change the main item type to \c Item, which is invisible. This way the graph is + not covered by the main item. + Then we'll add another \c Item inside it, and call it \c dataView. This will be the item to hold the Scatter3D graph. We'll anchor it to the parent bottom: diff --git a/examples/qmlscatter/qml/qmlscatter/main.qml b/examples/qmlscatter/qml/qmlscatter/main.qml index 22eab76b..62727f84 100644 --- a/examples/qmlscatter/qml/qmlscatter/main.qml +++ b/examples/qmlscatter/qml/qmlscatter/main.qml @@ -26,7 +26,6 @@ import "." //! [1] Item { id: mainView - visible: true //! [1] //! [4] |