@@ -13,7 +13,11 @@
#include <QtCore/QTextStream>
#include <QtCore/QCoreApplication>
#include <QtGui/QOpenGLContext>
+#if QT_VERSION < 0x060000
#include <QtGui/QOpenGLPaintDevice>
+#else
+#include <QOpenGLPaintDevice>
+#endif
#include <QtGui/QContextMenuEvent>
#include <QtGui/QKeyEvent>
#include <QtGui/QPainter>
@@ -16,7 +16,11 @@
#include <QAction>
#include <QActionGroup>
#include <QScrollArea>
+#if QT_VERSION < 0x060000
#include <QtGui/QOpenGLShaderProgram>
+#else
+#include <QOpenGLShaderProgram>
+#endif
#include "qvidcap.h"
@@ -13,7 +13,11 @@
#include <QtCore/QTextStream>
#include <QtCore/QCoreApplication>
#include <QtGui/QOpenGLContext>
+#if QT_VERSION < 0x060000
#include <QtGui/QOpenGLPaintDevice>
+#else
+#include <QOpenGLPaintDevice>
+#endif
#include <QtGui/QContextMenuEvent>
#include <QtGui/QKeyEvent>
#include <QtGui/QPainter>
@@ -7,6 +7,7 @@ INCLUDEPATH += . ../libv4l2util ../../lib/include ../../include
CONFIG += debug
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+greaterThan(QT_MAJOR_VERSION, 5): QT += openglwidgets
# adjust to your local meson build path
MESON_BUILD_PATH = $$PWD/build-meson
- update qmake project file for Qt6 (openglwidgets) - fix includes for Qt6 (QOpenGLShaderProgram instead of QtGui/QOpenGLShaderProgram and QOpenGLPaintDevice instead of QtGui/QOpenGLPaintDevice) Signed-off-by: Peter Seiderer <ps.report@gmx.net> --- utils/qvidcap/capture.cpp | 4 ++++ utils/qvidcap/capture.h | 4 ++++ utils/qvidcap/paint.cpp | 4 ++++ utils/qvidcap/qvidcap.pro | 1 + 4 files changed, 13 insertions(+)