Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Design Tooling
  3. Qt Design Studio
  4. How can I add QtPdf module to Qt Design Studio?
Forum Updated to NodeBB v4.3 + New Features

How can I add QtPdf module to Qt Design Studio?

Scheduled Pinned Locked Moved Solved Qt Design Studio
9 Posts 4 Posters 1.3k Views 2 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.
  • S Offline
    S Offline
    Serhan Kars
    wrote on 26 Apr 2024, 12:18 last edited by Serhan Kars
    #1

    I am a user of Qt Design Studio 4.4.0. I would like to add PdfViewer element to my designs. But I get the error messages:

    "module "QtQuick.Pdf" is not installed"

    An explanation to add QtPdf module to Qt Design Studio will be appreciated. Thank you.

    A 1 Reply Last reply 26 Apr 2024, 16:24
    0
    • S Serhan Kars
      26 Apr 2024, 12:18

      I am a user of Qt Design Studio 4.4.0. I would like to add PdfViewer element to my designs. But I get the error messages:

      "module "QtQuick.Pdf" is not installed"

      An explanation to add QtPdf module to Qt Design Studio will be appreciated. Thank you.

      A Offline
      A Offline
      afalsa
      wrote on 26 Apr 2024, 16:24 last edited by afalsa
      #2

      @Serhan-Kars

      Hello mate!

      I am going to tell how you can do it in Windows and Qt Design Studio 4.1.0 (But it will be more or less the same for other versions)

      • Go to QT_FOLDER/msvc/ instalation folder
      C:\Qt\6.6.0\msvc2019_64\qml\QtQuick
      
      • Copy Pdf folder
      • Go to Tools/QtDesignStudio folder
      C:\Qt\Tools\QtDesignStudio-4.1.0-lts\qt6_design_studio_reduced_version\qml\QtQuick
      
      • Paste Pdf folder.

      I dont know if this generates another error but at least it will find the module.

      Notes:

      • Your QtQuick.Pdf module version should be equal or higher than the indicated in QtDesignStudio>Help>About Qt Design Studio

      In my case:

      Based on Qt 6.5.4 (MSVC 2019, x86_64)
      
      S 1 Reply Last reply 26 Apr 2024, 19:11
      0
      • A afalsa
        26 Apr 2024, 16:24

        @Serhan-Kars

        Hello mate!

        I am going to tell how you can do it in Windows and Qt Design Studio 4.1.0 (But it will be more or less the same for other versions)

        • Go to QT_FOLDER/msvc/ instalation folder
        C:\Qt\6.6.0\msvc2019_64\qml\QtQuick
        
        • Copy Pdf folder
        • Go to Tools/QtDesignStudio folder
        C:\Qt\Tools\QtDesignStudio-4.1.0-lts\qt6_design_studio_reduced_version\qml\QtQuick
        
        • Paste Pdf folder.

        I dont know if this generates another error but at least it will find the module.

        Notes:

        • Your QtQuick.Pdf module version should be equal or higher than the indicated in QtDesignStudio>Help>About Qt Design Studio

        In my case:

        Based on Qt 6.5.4 (MSVC 2019, x86_64)
        
        S Offline
        S Offline
        Serhan Kars
        wrote on 26 Apr 2024, 19:11 last edited by
        #3

        @afalsa Thanks for answer.

        I tried. I have copied the Pdf folders of versions 6.5.4, 6.6.2* and 6.7.0 to the location mentioned.

        None of them worked. Still when I tried to run the design project I get the error message:

        Cannot load library C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\qml\QtQuick\Pdf\pdfquickplugin.dll: The specified module could not be found. (file:///{SOMETHING ABOUT MY PROJECT}.qml:6, (null))

        It is in fact in that location.

        *PS: Instead of "QtDesignStudio>Help>About Qt Design Studio" Qt version we should copy the QT Design Studio's Kit version (6.6.2 in my case).

        J 1 Reply Last reply 27 Apr 2024, 13:23
        0
        • S Serhan Kars
          26 Apr 2024, 19:11

          @afalsa Thanks for answer.

          I tried. I have copied the Pdf folders of versions 6.5.4, 6.6.2* and 6.7.0 to the location mentioned.

          None of them worked. Still when I tried to run the design project I get the error message:

          Cannot load library C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\qml\QtQuick\Pdf\pdfquickplugin.dll: The specified module could not be found. (file:///{SOMETHING ABOUT MY PROJECT}.qml:6, (null))

          It is in fact in that location.

          *PS: Instead of "QtDesignStudio>Help>About Qt Design Studio" Qt version we should copy the QT Design Studio's Kit version (6.6.2 in my case).

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 27 Apr 2024, 13:23 last edited by
          #4

          @Serhan-Kars said in How can I add QtPdf module to Qt Design Studio?:

          Cannot load library C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\qml\QtQuick\Pdf\pdfquickplugin.dll: The specified module could not be found. (file:///{SOMETHING ABOUT MY PROJECT}.qml:6, (null))

          It is in fact in that location.

          My guess: Even though pdfquickplugin.dll is in that location, you have some missing dependencies. Use https://github.com/lucasg/Dependencies to examine that DLL and see what's missing.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          S 1 Reply Last reply 29 Apr 2024, 12:06
          0
          • J JKSH
            27 Apr 2024, 13:23

            @Serhan-Kars said in How can I add QtPdf module to Qt Design Studio?:

            Cannot load library C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\qml\QtQuick\Pdf\pdfquickplugin.dll: The specified module could not be found. (file:///{SOMETHING ABOUT MY PROJECT}.qml:6, (null))

            It is in fact in that location.

            My guess: Even though pdfquickplugin.dll is in that location, you have some missing dependencies. Use https://github.com/lucasg/Dependencies to examine that DLL and see what's missing.

            S Offline
            S Offline
            Serhan Kars
            wrote on 29 Apr 2024, 12:06 last edited by
            #5

            @JKSH Thank you for the answer. Yes I have used dependencies to find the missing dlls.
            Copied missing dlls to the same location with pdfquickpluign.dll. Currently I hove no missing dependencies but my problem continues (with the same error message)

            246a4955-b944-4bd7-8af8-c25899e15a0e-image.png

            A J 2 Replies Last reply 29 Apr 2024, 16:37
            0
            • S Serhan Kars
              29 Apr 2024, 12:06

              @JKSH Thank you for the answer. Yes I have used dependencies to find the missing dlls.
              Copied missing dlls to the same location with pdfquickpluign.dll. Currently I hove no missing dependencies but my problem continues (with the same error message)

              246a4955-b944-4bd7-8af8-c25899e15a0e-image.png

              A Offline
              A Offline
              afalsa
              wrote on 29 Apr 2024, 16:37 last edited by
              #6

              @Serhan-Kars

              Well, it is true.

              Indeed, adding this to .qmlproject doesnt reveal anything helpfull

                      QML_IMPORT_TRACE: "1"
                      QT_QML_DEBUG: "1"
                      QT_DECLARATIVE_DEBUG: "1"
              
              Debug: locateLocalQmldir: QtQuick.Pdf module's qmldir found at "C:/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/qml/QtQuick/Pdf/qmldir" ((null):0, (null))
              Warning: QQmlApplicationEngine failed to load component ((null):0, (null))
              Warning: file:////BaseComponent.qml:3:1: No se puede cargar la biblioteca C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\qml\QtQuick\Pdf\pdfquickplugin.dll: No se puede encontrar el módulo especificado. (file:///BaseComponent.qml:3, (null))
              

              Now I'm a bit lost

              1 Reply Last reply
              1
              • S Serhan Kars
                29 Apr 2024, 12:06

                @JKSH Thank you for the answer. Yes I have used dependencies to find the missing dlls.
                Copied missing dlls to the same location with pdfquickpluign.dll. Currently I hove no missing dependencies but my problem continues (with the same error message)

                246a4955-b944-4bd7-8af8-c25899e15a0e-image.png

                J Offline
                J Offline
                JKSH
                Moderators
                wrote on 30 Apr 2024, 02:52 last edited by
                #7

                @Serhan-Kars said in How can I add QtPdf module to Qt Design Studio?:

                Copied missing dlls to the same location with pdfquickpluign.dll

                In Windows, a plugin's dependencies are not loaded from the plugin's own folder. You need to put those DLLs in the same folder where the previewer loads Qt6Core.dll (C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin in your case)

                By the way, here is the bug report about the missing "QtQuick.Pdf" module: https://bugreports.qt.io/browse/QDS-10888

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                S 1 Reply Last reply 30 Apr 2024, 13:44
                3
                • J JKSH
                  30 Apr 2024, 02:52

                  @Serhan-Kars said in How can I add QtPdf module to Qt Design Studio?:

                  Copied missing dlls to the same location with pdfquickpluign.dll

                  In Windows, a plugin's dependencies are not loaded from the plugin's own folder. You need to put those DLLs in the same folder where the previewer loads Qt6Core.dll (C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin in your case)

                  By the way, here is the bug report about the missing "QtQuick.Pdf" module: https://bugreports.qt.io/browse/QDS-10888

                  S Offline
                  S Offline
                  Serhan Kars
                  wrote on 30 Apr 2024, 13:44 last edited by
                  #8

                  @JKSH said in How can I add QtPdf module to Qt Design Studio?:

                  C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin

                  Thank you very much @JKSH. Copying the dlls that plugin needed to C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin solved my problem

                  1 Reply Last reply
                  1
                  • S Serhan Kars has marked this topic as solved on 30 Apr 2024, 13:45
                  • T Offline
                    T Offline
                    Tim.Jenssen
                    wrote on 3 May 2024, 14:12 last edited by
                    #9

                    somehow I oversaw that - 4.5 will have it, next time just create a bug report and we will see it earlier - https://bugreports.qt.io/browse/QDS-12654

                    1 Reply Last reply
                    0

                    1/9

                    26 Apr 2024, 12:18

                    • Login

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