custom print
-
Good afternoon, my question is this; how can I print in a certain position of a paper that already has printed text, I just want to print in certain areas of the paper, which on purpose has dimensions different from an A4 sheet, is about the size of a voucher.
NOTE.
I leave the image of the voucher, if it can be called like that, I want to print in only in the lines. is that possible. I would appreciate any suggestion.
-
Hi,
From your description you would have to do some custom painting on your QPrinter object and draw the image at the right coordinates so they appear on the positions your want on your paper sheet.
-
-
The
C++ GUI Programming with Qt 4book by Jasmin Blanchette, Mark Summerfield contains a pretty nice example on how to do custom painting. You should check the example of the corresponding chapter.