From 73e83d139481f87ec77db0f845b151b9f50d73bd Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 20 Feb 2014 14:55:33 +0200 Subject: Misc fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit + 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ää --- examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc | 10 ++-------- examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'examples/datavisualization/qmlscatter') 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] -- cgit v1.2.3