--nextPart54074399.WS0N07YxYf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 08 Sep 2007, Matt Rogers wrote: > On Sep 8, 2007, at 2:29 PM, Alex Merry wrote: > > Are custom margins really needed? > > What do you mean by custom margins? I think they would be needed for > printing things like photos where the margins are very tiny or > nonexistant. Well, KPrinter (and Qt3's QPrinter) provides methods which allow you to=20 get and set the left, right, top and bottom margins. QPrinter provides paperRect() and pageRect(), the latter being the=20 printable area. There is no way to set the margins yourself, but you=20 can use setFullPage() to change the origin from the top left of=20 pageRect() to the top left of paperRect(). The reason setting the margins doesn't really make sense is that=20 printers have an area that they can print on (which may be the full=20 page for some printers), and no amount of software settings is going to=20 change that. I'm not sure what applications are currently setting the margins for -=20 possibly just to change the co-ordinate system. However, you can do=20 this using QPainter::translate(). Alex =2D-=20 KDE: http://www.kde.org Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org --nextPart54074399.WS0N07YxYf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG4wbQBRauKLutZ9ARAg+1AJ9rHlU7kUxUN/813ND0QORIA+PwvwCghnca 0t4H4L1DpzVag3O8t37kmmk= =33YQ -----END PGP SIGNATURE----- --nextPart54074399.WS0N07YxYf--