From ad85513d4b38bdedac27a095bd3a988f1eda23a2 Mon Sep 17 00:00:00 2001 From: Sami Varanka Date: Wed, 2 Jun 2021 13:43:06 +0300 Subject: Fix direct rendering doesn't show anything MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ää --- examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/datavisualization/qmlscatter/doc') 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 -- cgit v1.2.3