Results 1 to 2 of 2

Thread: Printing with "Auto-fit"

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Printing with "Auto-fit"

    Hi,

    I'm currently developping a QT application which I would like to print some contents on User Request. So far, I have not had any problems with the UI aspect of printing. In fact, my problem regards the actual printing.

    I would like to know if it is possible to define a maximum number of pages (vertically and/or horizontally) in a way that the printed contents are always resized to fit in this number of pages.
    Such feature would let me focus on the actual lay out of the contents instead of the contents size.

    Such feature exists in software such as Microsoft Excel - the printed contents will be auto zoomed in/out so the contents fit on X pages wide and X pages high. Values for both entries can be either a number [1; +oo] or auto - auto meaning there will be no contents size adjusting.

    Thanks for your time and consideration.

    Ben

  2. #2
    Join Date
    Sep 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Printing with "Auto-fit"

    OK, I have successfully achieved to have such behaviour :
    - using a pixmap which "grabs my widget" (QPixmap::grabWidget)
    - and then scaling the pixmap using Qt::SmoothTransformation (otherwise it looks really ugly, which is no surprise).

    Thanks for your time and consideration.
    Last edited by benfp; 5th September 2009 at 16:45.

Similar Threads

  1. Printing txt file vs Printing pdf file
    By rmagro in forum Qt Programming
    Replies: 3
    Last Post: 9th July 2012, 15:45
  2. Qt4 poor printing performance
    By seneca in forum Qt Programming
    Replies: 4
    Last Post: 22nd January 2009, 14:23
  3. Printing problem in windows
    By joseph in forum Qt Programming
    Replies: 6
    Last Post: 12th July 2007, 08:04
  4. Replies: 0
    Last Post: 28th June 2006, 20:49

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