SteveH
11th February 2013, 17:55
Hi all,
I'm porting over a number of working programs from Qt4 to Qt5 and got myself stuck with a printing problem.
I've changed
#include <QPrinter>
to
#include <QtPrintSupport/QPrinter>
but the compiler is still throwing a lot of "undefined references to _imp___ZNK8QPrinter..." type errors.
eg for
printer.setOrientation(QPrinter::Landscape) ;
I get
undefined reference to `_imp___ZN8QPrinter14setOrientationENS_11Orientati onE'
Is there another #include header needed in Qt5 from what would normally work in Qt5 ?
If the solution is not simple can anybody point me to a simple Qt5 printing example ?
Regards
SteveH
I'm porting over a number of working programs from Qt4 to Qt5 and got myself stuck with a printing problem.
I've changed
#include <QPrinter>
to
#include <QtPrintSupport/QPrinter>
but the compiler is still throwing a lot of "undefined references to _imp___ZNK8QPrinter..." type errors.
eg for
printer.setOrientation(QPrinter::Landscape) ;
I get
undefined reference to `_imp___ZN8QPrinter14setOrientationENS_11Orientati onE'
Is there another #include header needed in Qt5 from what would normally work in Qt5 ?
If the solution is not simple can anybody point me to a simple Qt5 printing example ?
Regards
SteveH