From a5560dafe68f5e0cc63484d2b3121efe29143c4e Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 16 Apr 2023 09:37:46 +0200 Subject: [PATCH] presenterplugin: Only call setClearBeforeRendering in Qt5 As documented in https://doc.qt.io/qt-6/quick-changes-qt6.html, this should not be needed 1in Qt6 and was consequently removed. --- plugins/presenter/presenterplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/presenter/presenterplugin.cpp b/plugins/presenter/presenterplugin.cpp index a336207a9..53b209a60 100644 --- a/plugins/presenter/presenterplugin.cpp +++ b/plugins/presenter/presenterplugin.cpp @@ -34,7 +34,9 @@ public: windowFlags |= Qt::WindowTransparentForInput; #endif setFlags(windowFlags); +#if QT_VERSION_MAJOR < 6 setClearBeforeRendering(true); +#endif setColor(QColor(Qt::transparent)); setResizeMode(QQuickView::SizeViewToRootObject);