PDA

View Full Version : Problems with printing ?



complexcoding
31st January 2013, 11:28
Hi I print the class QPrinter, QPainter can be used to print and printer to printer, but it works out between you straight print (2 copies of a file) the printer is working all the time and it takes a long time and hp is hot!!! What's problem?

MWagman
31st January 2013, 13:19
The first problem is we need to see your code.

complexcoding
1st February 2013, 09:04
thank you very much :

QFont font("B Lotus", 10);
font.setBold(true);
QPrinter printer;
printer.setPageSize(QPrinter::A4);
printer.setOutputFormat(QPrinter::NativeFormat);
// printer.setOutputFileName("nonwritable.pdf");

printer.setCopyCount(2);

QPainter painter(this);

painter.begin(&printer);
painter.setFont(font);
*
*
*
*
painter.end();

complexcoding
1st February 2013, 12:00
No one wants to help?

MWagman
1st February 2013, 15:25
Learning printing myself, how large is the PDF - and how does the printer deal with that. IF the hp is hot (litterally) I would look at that instead of a program issue