PDA

View Full Version : Printing Question



rogerholmes
4th May 2009, 08:03
can someone point me to examples of printing from a view. I ALMOST have it working but the view is printing to high and to far left on the paper so the information is cropped. is there a way to adjust for printer cords.???

spirit
4th May 2009, 08:08
have a look at this (http://labs.trolltech.com/blogs/2009/04/23/all-you-need-is-a-little-polish/) blog.

rogerholmes
5th May 2009, 00:23
Thanks I will study this. But even on this spreadsheet output it is top left, how would you print the spreadsheet image lower and father to the right ?

wysota
5th May 2009, 00:40
The printer is a QPaintDevice. You print by drawing on it. If you want to print more to the right, just draw more to the right. Using QPainter::translate() might be helpful.

rogerholmes
5th May 2009, 05:39
thanks wysota and spirit.:)