From e6b2a46da9566cc03942ff9351265ce1a0035fa0 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 15 Jun 2020 16:27:38 +0200 Subject: [PATCH] Porting guide: add setClearBeforeRendering Change-Id: I6ba4f999eb91d497422f4125ff58ce04aa4f7595 Reviewed-by: Andy Nichols --- doc/src/source-breaks.qdoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/src/source-breaks.qdoc b/doc/src/source-breaks.qdoc index 0e35cfd7d..4914caf00 100644 --- a/doc/src/source-breaks.qdoc +++ b/doc/src/source-breaks.qdoc @@ -186,6 +186,14 @@ to evaluate if the call is necessary at all, because in many cases it likely is not. If some OpenGL state needs resetting to the defaults, issue the necessary OpenGL state change calls directly in the application code. +\li setClearBeforeRendering() and clearBeforeRendering() have been removed from +QQuickWindow. There is no option for skipping the color buffer clearing in Qt +6. Calling setClearBeforeRendering() was often necessary in Qt 5 in combination +with underlays, to prevent Qt Quick from clearing the content rendered into the +color buffer. In Qt 6, there is a more robust approach: connecting to the +beforeRenderPassRecording() signal, that is emitted after clearing, but before +rendering Qt Quick's content. + \endlist \section1 Changes to Qt OpenGL