Results 1 to 3 of 3

Thread: Save QWidget as PDF file

  1. #1
    Join Date
    Apr 2010
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Save QWidget as PDF file

    How can I save the contents of a widget (could be textedit, image, or tables) as a PDF file? Any code examples will be really appreciated.

    QThanks!

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Save QWidget as PDF file

    QPrinter with PdfFormat

  3. #3
    Join Date
    Apr 2010
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Save QWidget as PDF file

    Thanks a lot, that works!

Similar Threads

  1. How to save file with QFileDialog
    By pnikolov in forum Qt Programming
    Replies: 11
    Last Post: 1st June 2012, 10:23
  2. Save File in another Folder
    By GonzoFist in forum General Programming
    Replies: 14
    Last Post: 20th April 2010, 12:59
  3. Save file dialog
    By yxtx1984 in forum Newbie
    Replies: 1
    Last Post: 22nd January 2010, 11:00
  4. Save Icon in a file
    By prashant in forum Qt Programming
    Replies: 1
    Last Post: 27th November 2009, 18:07
  5. [QWidget] How to save proporties?
    By Macok in forum Qt Programming
    Replies: 14
    Last Post: 29th March 2009, 14:26

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.