Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issue while loading a PDF using ActiveX in Qt, CMake
QtWS25 Last Chance

Issue while loading a PDF using ActiveX in Qt, CMake

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 474 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Dharani PrasadD Offline
    Dharani PrasadD Offline
    Dharani Prasad
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      https://doc.qt.io/qt-5/qtpdf-index.html
      Use Qt PDF module

      Dharani PrasadD 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        https://doc.qt.io/qt-5/qtpdf-index.html
        Use Qt PDF module

        Dharani PrasadD Offline
        Dharani PrasadD Offline
        Dharani Prasad
        wrote on last edited by
        #3

        @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)
        
        1 Reply Last reply
        0
        • M Offline
          M Offline
          mchinand
          wrote on last edited by
          #4

          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

          Dharani PrasadD 1 Reply Last reply
          0
          • M mchinand

            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

            Dharani PrasadD Offline
            Dharani PrasadD Offline
            Dharani Prasad
            wrote on last edited by
            #5

            @mchinand @JoeCFD thanks for your time :)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved