Results 1 to 3 of 3

Thread: QPrintPreviewDialog printing just one page of multiple pages.

  1. #1
    Join Date
    May 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

  2. #2
    Join Date
    Apr 2010
    Posts
    15
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QPrintPreviewDialog printing just one page of multiple pages.

    Hi
    I have the same problem. Did you fix it?

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

    Default Re: QPrintPreviewDialog printing just one page of multiple pages.

    If you do not want all the pages in the output then do not render all the pages in the slot you attach to paintRequested(). If the user has opted to print only a range of pages, for example, then the QPrinter object will return that range through QPrinter::printRange(), QPrinter::fromPage() and QPrinter::toPage(). Only render the requested pages.

Similar Threads

  1. problem printing a multi page report
    By schnitzel in forum Newbie
    Replies: 12
    Last Post: 23rd January 2011, 01:50
  2. Printing complex page with changing data
    By marcvanriet in forum Qt Programming
    Replies: 4
    Last Post: 22nd December 2010, 01:15
  3. QWebKit, Printing and Page Numbers
    By colin207 in forum Qt Programming
    Replies: 0
    Last Post: 23rd June 2010, 18:06
  4. multiple plots on multple pages
    By giusepped in forum Qwt
    Replies: 0
    Last Post: 29th July 2009, 08:38
  5. Once for all: fit page when printing
    By Raccoon29 in forum Newbie
    Replies: 0
    Last Post: 29th September 2008, 10:48

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.