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