Results 1 to 4 of 4

Thread: Display .pdf file in Qt window screen

  1. #1
    Join Date
    Aug 2013
    Location
    India
    Posts
    44
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Display .pdf file in Qt window screen

    Hello every one please assist me to display the pdf file in qt window screen with confirm button(that is for file is Ok)

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Display .pdf file in Qt window screen

    Qt does not have any UI widgets for displaying PDF files.

    There is a third-party library (Poppler) which you might be able to use. Unfortunately it is linux-only and is GPL-licensed, which means it cannot be used in a commercial closed-source product.

    There is a Qt Labs project, QtPdf but this is not part of the regular Qt distribution and you will have to build it from source code. It is being considered for inclusion in a future version of Qt (5.14 or later) as a "Tech Preview" module. It is not as mature as Poppler, but it does have a more permissive license.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Aug 2013
    Location
    India
    Posts
    44
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Display .pdf file in Qt window screen

    Quote Originally Posted by d_stranz View Post
    Qt does not have any UI widgets for displaying PDF files.

    There is a third-party library (Poppler) which you might be able to use. Unfortunately it is linux-only and is GPL-licensed, which means it cannot be used in a commercial closed-source product.

    There is a Qt Labs project, QtPdf but this is not part of the regular Qt distribution and you will have to build it from source code. It is being considered for inclusion in a future version of Qt (5.14 or later) as a "Tech Preview" module. It is not as mature as Poppler, but it does have a more permissive license.
    Thank you so much for your reply but i need to display the data in window like webview() where i can add button also to verify that loaded is correct or incorrect.
    I have seen somewhere that through qwebview we can display data in widget but in my case it does not work.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Display .pdf file in Qt window screen

    I have read that there is a PDF.js library that allows PDF files to be displayed in browsers. I have no idea how to use this or if it will work with Qt's webview.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Display .pdf file in Qt window screen
    By prabhatjha in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2020, 18:19
  2. Full Screen window with separate window widget on top
    By Linwood in forum Qt Programming
    Replies: 3
    Last Post: 15th January 2017, 11:39
  3. Replies: 6
    Last Post: 9th November 2011, 05:31
  4. Open file Window Screen
    By jano_alex_es in forum Newbie
    Replies: 3
    Last Post: 27th May 2009, 09:39
  5. how to display a window full screen??
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2006, 13:07

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.