Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtPdf - QML module not found
Qt 6.11 is out! See what's new in the release blog

QtPdf - QML module not found

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.0k 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.
  • R Offline
    R Offline
    redimp
    wrote on last edited by
    #1

    Hello everybody
    I’m relatively new to Qt and QtQick in particular and am trying to render a PDF file in my qml application (OS: Win10, platform: Desktop). To achieve this I built QtPdf following the instructions in the Qt Wiki.
    My project structure is as follows:

    |myProject
       |-- qml  
          |-- QtQuick  
             |-- Pdf  
                 qmldir  
                 plugins.qmltypes  
                 pdfplugin.dll  
                 [...] 
       main.cpp
       main.qml
       someComponent.qml
       [...]
    

    I’m building with CMake and added the import path like it is described here:

    set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/qml ${CMAKE_BINARY_DIR}/imports CACHE STRING "" FORCE)
    

    And I imported the module in my qml files using

    import QtQuick.Pdf 5.15
    

    Sadly I get a “QML module not found” exception. Obviously I’m missing something important and would be grateful if someone could point me to it.
    If something is unclear or you need more information or code snippets from any files, I'm happy to provide the information needed.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sag11
      wrote on last edited by
      #2

      Did you find solution to this???? I am having the same problem..

      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