QPrinter does not show my printer
The QPrinter class does not show my printer. Instead, it says "Print to file (PDF)" instead of the printername.
Also, I can not change/select a printer.
I use the following code:
@ QPrinter print(QPrinter::HighResolution);
QPrintDialog printerdialog(&print, this);
I'm using openSUSE 12.2 with KDE. CUPS is installed, also the development files for CUPS.
I configured Qt with the option "-cups". The output of ./configure stated that CUPS is enabled.
Cups management on my pc works. Printing with other applications (Kate, LinbreOffice, Gimp) works fine.
I found the cause, it's a bug in Qt 5.0.1 that occurs only when you build the static libs of Qt.
So, building Qt static, breaks QPrinter.
add to pro
QTPLUGIN += windowsprintersupport
Hareen Laks last edited by
Hi Trinco, please edit the title as solved. :)
piterwalton Banned last edited by
This post is deleted!