Bug 94937

Summary: Wrong header in test-render-to-file.cpp
Product: poppler Reporter: poubelle
Component: qt frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium CC: atvservice
Version: unspecified   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description poubelle 2016-04-14 19:45:09 UTC
When compiling poppler with qt5 support, it appears that in file :

qt5/tests/test-render-to-file.cpp

there is a problem in the header :

#include <QGuiApplication>
#include <QImage>

should be replaced with :

#include <QtGui/QGuiApplication>
#include <QtGui/QImage>
Comment 1 Albert Astals Cid 2016-04-17 22:34:24 UTC
#include <QGuiApplication> 

is correct.

Why are you saying it is not?
Comment 2 Albert Astals Cid 2016-11-29 23:40:10 UTC
No answer -> invalid
Comment 3 poubelle 2016-11-30 15:20:47 UTC
Sorry I forgot to answer.

Yes I'm saying that for compiling on my Mac OS it doesn't work without changing

to

#include <QtGui/QGuiApplication>
#include <QtGui/QImage>

I compile Poppler-Qt since a long time on Mac, and this bug appeared since upgrade to Qt5.
Comment 4 Albert Astals Cid 2016-11-30 15:27:16 UTC
you can either provide a "proper" patch, 
no changing
#include <QGuiApplication>
to 
#include <QtGui/QGuiApplication>

is not proper.

Or you can find what's wrong with your Qt installation

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.