[Qt-interest] Printing performance with 4.4.3

Acenes acenes at gmx.net
Wed Jan 21 06:56:37 CET 2009


In my report designer I am printing about 200 items by 
QGraphicsScene::render to the QPainter associated to a QPrinter. The 
operating system is Windows XP Home. When printing the painting/rendering 
performance is extreamly dependant of the printer device that gets pronted 
to, and there to the resolution selected in the printer settings. The 
resolution given as argument to the QPrinter constructor however seems to 
have no big effect an performance surprisingly.

For example when printing to a OfficeJet G85 color inkjet at normal print 
quality, the rendering takes about 2 or three seconds. When printing to a 
Brother 2035 laser at normal quality with 300 DPI, the rendering takes about 
20 seconds, alas about 10 times what the inkjet needs for comparable 
quality. Selecting high quality 600DPI on the laser will extend the 
rendering process to more that one minute, which is hardly acceptable.

Both printers are attached to another PC in the LAN by USB, and made 
available as network share. During the rendering time CPU usage is quite 
low, hardly above the idle load. There is also no disk avtivity during this 
time.

Has anybody also seen such drastic printer dependent performance issues on 
different print devices?

What could be done to improve performance, should I first render everything 
on a pixmap and then send the page as pixmap to the printer, would that make 
a difference? 





More information about the Qt-interest-old mailing list