Wednesday, January 9, 2013

Where did my QPrinters go?

Are you already migrating your applications from Qt 4.x to latest Qt 5.0 framework just released? And do your applications involve the use QPrinter class? If you answered YES to both questions, make you a favor to avoid further building problems...



Please don't forget to add QT += printsupport in your .pro file. Remember that Qt 5 is now divided into Qt Essentials modules along with Qt Add ons modules and QPrinter has been moved into qtprintsupport module in Qt 5. After changing the .pro file, run qmake and then build your project.

No comments:

Post a Comment