From 1488db7f68ffe53f7d54217193753e6e4f0c04db Mon Sep 17 00:00:00 2001 From: Fatih Uzunoglu Date: Tue, 19 Sep 2023 16:07:19 +0300 Subject: [PATCH] qt: fix QQuickImageProvider deriving from QObject since Qt 6 --- modules/gui/qt/util/effects_image_provider.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt/util/effects_image_provider.hpp b/modules/gui/qt/util/effects_image_provider.hpp index 37d716d30d..c71c487b05 100644 --- a/modules/gui/qt/util/effects_image_provider.hpp +++ b/modules/gui/qt/util/effects_image_provider.hpp @@ -24,7 +24,11 @@ #include #include -class EffectsImageProvider : public QObject, public QQuickImageProvider +class EffectsImageProvider : +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) +public QObject, +#endif +public QQuickImageProvider { Q_OBJECT