I want to add pdfreader in my qt application.when searched online I got to know about qtpdf class. I try to include same in my project. seems I don't have package in my system itself so it don't allows me to run qmake with qpdf includes. Is there any way to download qpdf module from internet? I'm running qt community edition 5.10 Any other alternatives to display pdf files are also welcome..
Asked
Active
Viewed 414 times
1 Answers
0
You probably need to add QT += pdf
to your qmake project file.

HiFile.app - best file manager
- 7,273
- 2
- 32
- 80
-
I added but have no use.. it's saying unknown module "pdf" on qmake. I think I need to download the module somehow but don't know how and from where. – Rohit Kalelkar Apr 11 '22 at 09:27
-
You may need to install newer Qt, maybe. Why are you stuck with Qt 5.10? – HiFile.app - best file manager Apr 11 '22 at 09:34
-
QtPdf is for example present in my Qt 5.15.2 installation. I however suspect you may need to opt fot QtWebEngine to be installed in order to have QtPdf installed. – HiFile.app - best file manager Apr 11 '22 at 10:14