QPrintPreviewDialog printing just one page of multiple pages.
Re: QPrintPreviewDialog printing just one page of multiple pages.
Hi
I have the same problem. Did you fix it?
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.