[Interest] Problems printing

David Heremans dhran at scarlet.be
Wed Aug 8 12:40:23 CEST 2012


Hello,
I'm trying to extend a program with some printing functionality and
things aren't working out as expected. I'm hoping someone here can shed
some light on the issues I'm experiencing...

I stripped down my problems to a minimal working test case, which source
I have attached. The main 2 problems I'm facing here are:

1) I tried to print a border around the printable pageRect(). The debug
   shows me that paperRect() is bigger as the pageRect() as was to be
   expected from the documentation, but when I paint both pageRect and
   paperRect I still see them both?  And they extend to the left and
   bottom outside of the page ? I expected the pageRect to be clipped
   and the paperRect to be completely centered on the page...

2) I alway see the last page I try to print to the PDF. If I send the
   output to a real printer a get two pages printed out, but in the pdf
   only one shows up ?

Can somebody enlighten me to what is going on and correct me, since I have
the funny feeling that I'm not entirely grasping this matter.

Thanks for any suggestions!

David


-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1649 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120808/987c3277/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120808/987c3277/attachment.sig>


More information about the Interest mailing list