Bug 96596

Summary: tests compile errors with non-standart Qt install folder : e.g. /opt/Qt5.7.0
Product: poppler Reporter: Miroslav Tzonkov <atvservice>
Component: qt frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED INVALID QA Contact:
Severity: trivial    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Miroslav Tzonkov 2016-06-20 13:01:51 UTC
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>
Comment 1 Albert Astals Cid 2016-06-20 21:29:44 UTC
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.