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
Forum Updated to NodeBB v4.3 + New Features

Issue while loading a PDF using ActiveX in Qt, CMake

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 528 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dharani Prasad
    wrote on 31 Aug 2021, 13:07 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
    • J Offline
      J Offline
      JoeCFD
      wrote on 31 Aug 2021, 13:25 last edited by
      #2

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

      D 1 Reply Last reply 31 Aug 2021, 13:32
      0
      • J JoeCFD
        31 Aug 2021, 13:25

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

        D Offline
        D Offline
        Dharani Prasad
        wrote on 31 Aug 2021, 13:32 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 31 Aug 2021, 13:37 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

          D 1 Reply Last reply 2 Sept 2021, 07:14
          0
          • M mchinand
            31 Aug 2021, 13:37

            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

            D Offline
            D Offline
            Dharani Prasad
            wrote on 2 Sept 2021, 07:14 last edited by
            #5

            @mchinand @JoeCFD thanks for your time :)

            1 Reply Last reply
            0

            1/5

            31 Aug 2021, 13:07

            • Login

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