Hello every one please assist me to display the pdf file in qt window screen with confirm button(that is for file is Ok)
Hello every one please assist me to display the pdf file in qt window screen with confirm button(that is for file is Ok)
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.
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.
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.
Bookmarks