Results 1 to 3 of 3

Thread: Not print the range of pages

  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Not print the range of pages

    Hi friends,

    I'm working with QPrintPreviewWidget to generate reports, while trying to print a range of pages is printed all.
    I am using Fedora 12 and QT 4.5.3.
    I wrote and attach a small example, if someone can help me would be much appreciated. Suggestions are welcome

    Marcelo E. Geyer
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: Not print the range of pages

    People who downloaded the code, compiled and tested, the same problem occurs?
    Does anyone have any suggestions? It will be a bug in QT?

    Thanks,

    Marcelo E. Geyer

  3. #3
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb Re: Not print the range of pages

    Hi again,

    I took a step in understanding how the QPrintPreviewWidget works.
    I have a situation where I had to deploy a variable that would serve as counter items so that when there was a need to create a new page (QPrinter: newPage ()), the next item would be that the form variable. As this variable is not restarted, when I print or export to PDF I have a surprise: only the last page is printed or exported.
    This leads me to conclude that not only define the range of pages you wish to print in QPrintDialog, but I feel should be done some control to know which is the page that corresponds to that if you want to print.

Similar Threads

  1. Trouble to print with QPrintPreviewWidget
    By estanisgeyer in forum Qt Programming
    Replies: 5
    Last Post: 24th December 2009, 06:14
  2. QWebView print() not printing as WYSIWYG
    By thiagoalencar22 in forum Qt Programming
    Replies: 1
    Last Post: 4th November 2009, 12:43
  3. print preview
    By wbt_ph in forum Qt Programming
    Replies: 4
    Last Post: 1st August 2009, 06:41
  4. Replies: 1
    Last Post: 7th August 2008, 14:49
  5. Change margin on QTextEdit print()
    By Dii in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2008, 22:45

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.