summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlscatter/doc
diff options
context:
space:
mode:
authorSami Varanka <sami.varanka@qt.io>2021-06-02 13:43:06 +0300
committerSami Varanka <sami.varanka@qt.io>2021-06-04 13:19:59 +0300
commitad85513d4b38bdedac27a095bd3a988f1eda23a2 (patch)
treeb1592889c3ba57f43a64f63625704db53bb8df2f /examples/datavisualization/qmlscatter/doc
parent84e9b2018b93dcffcbabf5dbc93a670d9ddf688e (diff)
Fix direct rendering doesn't show anything
Rendering a graph directly to background didn't work in Qt 6 since it uses RHI and there is no way to not clear the color buffer before rendering. The graph uses direct OpenGL calls to render directly to background. Enabled direct rendering to qml3doscilloscope example. In addition, RenderDirectToBackground_NoClear got deprecated. When rendering directly to background, using non-transparent qml item as a background will hide the graph. This was already mentioned in the documentation but not clearly enough. Updated documentation for AbstractGraph3D. Pick-to: 6.1 Fixes: QTBUG-90665 Change-Id: I53081bac382ab89573359886e4f5c4b41be8e86d Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples/datavisualization/qmlscatter/doc')
-rw-r--r--examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc b/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc
index 667aea49..95d2bc66 100644
--- a/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc
+++ b/examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc
@@ -80,11 +80,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 Data.qml is.
- Then we create our main \c Rectangle and call it \c mainView:
+ Then we create our main \c Item and call it \c mainView:
\snippet qmlscatter/qml/qmlscatter/main.qml 1
- Then we'll add another \c Item inside the main \c Rectangle, and call it \c dataView.
+ Then we'll add another \c Item inside the main \c Item, 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