diff --git a/qt5/tests/test-render-to-file.cpp b/qt5/tests/test-render-to-file.cpp index 5f86da4..9a940a8 100644 --- a/qt5/tests/test-render-to-file.cpp +++ b/qt5/tests/test-render-to-file.cpp @@ -1,7 +1,8 @@ #include <QtCore/QDebug> #include <QtCore/QFile> -#include <QGuiApplication> -#include <QImage> +//#include <QGuiApplication> +#include <QtWidgets/QApplication> +#include <QtGui/QImage> #include <poppler-qt5.h>
This is not the correct fix. #include <QImage> is completely valid, it's even documented as "the way" to do it in Qt documentation, so find what's the actual error and fix that one.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.