Results 1 to 3 of 3

Thread: HELP in Creating PDF in Qt5.2 from database content.

  1. #1
    Join Date
    Oct 2013
    Posts
    7
    Thanks
    2
    Qt products
    Qt5 Qt Jambi
    Platforms
    Unix/X11 Windows Android

    Default HELP in Creating PDF in Qt5.2 from database content.

    Hi All,

    I am developing a GUI application using Qt5.2.
    I have a task to implement but I can't find any help on internet.
    The task is: I need to click a push button and it should create and open a PDF file by fetching few entries from SQLITE database table and I can save it manually.

    I need some guidance for this.

    Thanks in advance for any suggestion and help.

  2. #2
    Join Date
    Nov 2006
    Location
    indonesia
    Posts
    55
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: HELP in Creating PDF in Qt5.2 from database content.

    Hi,
    Are you have try this link : http://qt-project.org/wiki/Handling_PDF
    The other method is you can look at qt-apps.org and search pdf reader/pdf viewer application.
    So, you can use that.
    Thank you.

    Best regards,

    Myta

  3. The following user says thank you to myta212 for this useful post:

    webjack (28th December 2013)

  4. #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: HELP in Creating PDF in Qt5.2 from database content.

    You create a PDF using the QPrinter class in Qt. Qt provides no mechanism on its own to display the generated PDF file although you can use the print preview to see what will go into the PDF before you output it. Qt can be used to launch a viewer for PDF files either with QProcess or QDesktopServices. Myta212's link covers most of the options including other libraries that may help.

Similar Threads

  1. Replies: 6
    Last Post: 20th May 2011, 17:56
  2. Load in memory the content of a database
    By franco.amato in forum Qt Programming
    Replies: 24
    Last Post: 3rd January 2011, 17:21
  3. creating new sql database
    By prolink007 in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2010, 21:58
  4. How to find that, i am creating database first time
    By newtowindows in forum Qt Programming
    Replies: 4
    Last Post: 27th October 2009, 13:33
  5. inserting content in database
    By codeman in forum Qt Programming
    Replies: 2
    Last Post: 3rd June 2009, 16:47

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.