Issue while loading a PDF using ActiveX in Qt, CMake
-
How to create an Qt application to open PDF files. I am trying to use ActiveQt\QAxWidgets to load a PDF file using Adobe PDF Reader. It works on the QMake project but not in the project which I'm trying to build in CMake. I am using Qt 5.12.9.
Is there any other working way to render a PDF file in Qt application, other than ActiveX?
-
https://doc.qt.io/qt-5/qtpdf-index.html
Use Qt PDF module -
https://doc.qt.io/qt-5/qtpdf-index.html
Use Qt PDF module@JoeCFD thanks, but it shows
Could not find a package configuration file provided by "Qt5Pdf" with any of the following names: Qt5PdfConfig.cmake qt5pdf-config.cmake Add the installation prefix of "Qt5Pdf" to CMAKE_PREFIX_PATH or set "Qt5Pdf_DIR" to a directory containing one of the above files. If "Qt5Pdf" provides a separate development package or SDK, be sure it has been installed. CMakeLists.txt:27 (find_package)
-
Use a newer version of Qt:
"Qt PDF C++ Classes
Renders pages from PDF documents. More...This module was introduced in Qt 5.14."
https://doc.qt.io/qt-5/qtpdf-module.html -
Use a newer version of Qt:
"Qt PDF C++ Classes
Renders pages from PDF documents. More...This module was introduced in Qt 5.14."
https://doc.qt.io/qt-5/qtpdf-module.html