Results 1 to 7 of 7

Thread: QPrinter does not match documentation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2011
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Smile Re: QPrinter does not match documentation

    Quote Originally Posted by ChrisW67 View Post
    10 "pixels" at 300, 600, or 1200 dots per inch (i.e. typical printer resolution) is less than a millimetre from the page edges: your pageRect() and paperRect() are very similar. That position is probably comparable to the tolerance of paper positioning in the printer, and less than the typical non-printable margin on a printer.
    You are right. I just misunderstood the conception "page margin".
    The QPrinter::setPageMargin function gave me a illusion that the entire paper is drawable.

    Thanks for your reply.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QPrinter does not match documentation

    All printing occurs inside the page rect, which is offset from the paper edges by the margins you set. The entire paper area is addressable if you set pageRect == paperRect by setting the margins to zero or setFullPage(true). Your margins, while not zero, were so small that the page rect would barely be visibly different from the paper rect.

    What is actually printed is constrained by the printer's non-printable areas, typically a couple of millimetres all around but variable by printer: this is not considered by Qt at all.

    There's also a bug regarding setFullPage() on Windows: QTBUG-5363

Similar Threads

  1. no match for 'operator=' in...
    By toss in forum Newbie
    Replies: 2
    Last Post: 14th April 2010, 01:08
  2. Replies: 1
    Last Post: 21st September 2009, 08:30
  3. No match for operator>>
    By Salazaar in forum Newbie
    Replies: 18
    Last Post: 12th June 2007, 18:48
  4. Adding Qt's documentation to Xcode documentation browser
    By fabietto in forum Qt Programming
    Replies: 0
    Last Post: 10th June 2007, 16:38
  5. QPrinter::PrinterMode and QPrinter::setResolution??
    By SkripT in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2006, 12:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.