<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QtPdf - QML module not found]]></title><description><![CDATA[<p dir="auto">Hello everybody<br />
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 <a href="https://wiki.qt.io/index.php?title=QtPDF_Build_Instructions" target="_blank" rel="noopener noreferrer nofollow ugc">Qt Wiki</a>.<br />
My project structure is as follows:</p>
<pre><code>|myProject
   |-- qml  
      |-- QtQuick  
         |-- Pdf  
             qmldir  
             plugins.qmltypes  
             pdfplugin.dll  
             [...] 
   main.cpp
   main.qml
   someComponent.qml
   [...]
</code></pre>
<p dir="auto">I’m building with CMake and added the import path like it is described <a href="https://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html#importing-qml-modules" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>:</p>
<pre><code>set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/qml ${CMAKE_BINARY_DIR}/imports CACHE STRING "" FORCE)
</code></pre>
<p dir="auto">And I imported the module in my qml files using</p>
<pre><code>import QtQuick.Pdf 5.15
</code></pre>
<p dir="auto">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.<br />
If something is unclear or you need more information or code snippets from any files, I'm happy to provide the information needed.</p>
]]></description><link>https://forum.qt.io/topic/120175/qtpdf-qml-module-not-found</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 01:34:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/120175.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Oct 2020 13:52:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtPdf - QML module not found on Thu, 06 Apr 2023 13:59:00 GMT]]></title><description><![CDATA[<p dir="auto">Did you find solution to this???? I am having the same problem..</p>
]]></description><link>https://forum.qt.io/post/753878</link><guid isPermaLink="true">https://forum.qt.io/post/753878</guid><dc:creator><![CDATA[Sag11]]></dc:creator><pubDate>Thu, 06 Apr 2023 13:59:00 GMT</pubDate></item></channel></rss>