<?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[Submodule QML module not found (MySubmoduleName)]]></title><description><![CDATA[<p dir="auto">Hello fellow Qt Devs,</p>
<p dir="auto">I was following this tutorial  "QML Modules": <a href="https://academy.qt.io/content-details/338477721/2" target="_blank" rel="noopener noreferrer nofollow ugc">https://academy.qt.io/content-details/338477721/2</a><br />
and ran into the issue where text processor throws an error(which is also visible in the tutorial):<br />
<img src="https://ddgobkiprc33d.cloudfront.net/275b431d-7f55-4123-be66-dddfb46875ac.png" alt="preprocessor_error.png" class=" img-fluid img-markdown" /><br />
and of course then the methods described in that module do not get highlighted:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/df845809-38c9-4584-b0f8-1bb7186bde97.png" alt="noHighlighting.png" class=" img-fluid img-markdown" /><br />
however when I build everything runs fine as expected and the submodules contents get loaded and built libraries are there.</p>
<p dir="auto">Cheers, DSU</p>
]]></description><link>https://forum.qt.io/topic/165023/submodule-qml-module-not-found-mysubmodulename</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 02:53:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165023.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Aug 2026 10:11:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Submodule QML module not found (MySubmoduleName) on Fri, 21 Aug 2026 11:54:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a><br />
the QT_QML_OUTPUT_DIRECTORY is setting is not covered in the video tutorial itself, it is only in the github repository, one of the recent rating comments does hint at this:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/db4c45f8-b684-4068-a7bf-c1ff17440729.png" alt="import_issue_fix_hint.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I think if one includes it in the CMake file then it is enough (though i didn't test it), no need to use QML Language Server.</p>
<p dir="auto">Also your identifier tip solved the other warning, thanks.</p>
]]></description><link>https://forum.qt.io/post/839812</link><guid isPermaLink="true">https://forum.qt.io/post/839812</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Fri, 21 Aug 2026 11:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to Submodule QML module not found (MySubmoduleName) on Fri, 21 Aug 2026 08:05:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dspuz">@<bdi>DSpUz</bdi></a> said in <a href="/post/839809">Submodule QML module not found (MySubmoduleName)</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> QtCreator 20.0.1, in this case its Qt 6.11.1 but same error occurs with Qt 6.9.3. I did reset code model same as in video, but that error persists so it doesnt really matter.</p>
</blockquote>
<p dir="auto">The old code model doesn't understand the CMake outputs for the QML modules; no amount of resetting will help. You need to use the new QML Language Server instead.</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> I did enable QML Language Server as you said, and it went from red to yellow :)</p>
</blockquote>
<p dir="auto">Great! That proves that the QML Language Server is active.</p>
<p dir="auto">Next:</p>
<ol>
<li>Have you built and run your project? You need to build at least once for the module files to be generated for the QML Language Server to see.</li>
<li>I see that the tutorial uses a slightly complex folder structure, and sets <code>QT_QML_OUTPUT_DIRECTORY</code> to compensate. Have you done the same?</li>
</ol>
<p dir="auto">(Note: Ideally you shouldn't need to set additional fields, but there are currently some limitations in the QML tools. See <a href="https://qt-project.atlassian.net/browse/QTBUG-137199" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.atlassian.net/browse/QTBUG-137199</a> for the nitty gritty details)</p>
<blockquote>
<p dir="auto">Also another warning popped up where it claims QQuickItem doesnt have pressed property for the button:</p>
</blockquote>
<p dir="auto">Yes, that is correct. <code>parent</code>'s type is <code>Item</code>. <code>Item</code> has many properties, but <code>pressed</code> is not one of them: <a href="https://doc.qt.io/qt-6/qml-qtquick-item.html#properties" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qml-qtquick-item.html#properties</a></p>
<p dir="auto">I suggest giving an ID to your Button (for example, <code>id: btn</code>) and then write <code>color: btn.pressed ? ...</code></p>
]]></description><link>https://forum.qt.io/post/839810</link><guid isPermaLink="true">https://forum.qt.io/post/839810</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 21 Aug 2026 08:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to Submodule QML module not found (MySubmoduleName) on Fri, 21 Aug 2026 07:40:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> QtCreator 20.0.1, in this case its Qt 6.11.1 but same error occurs with Qt 6.9.3. I did reset code model same as in video, but that error persists so it doesnt really matter.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> I did enable QML Language Server as you said, and it went from red to yellow :)<br />
<img src="https://ddgobkiprc33d.cloudfront.net/b877db8b-e536-4351-a3cc-0cab53a88b94.png" alt="preprocessor_error2.png" class=" img-fluid img-markdown" /><br />
Also another warning popped up where it claims QQuickItem doesnt have pressed property for the button:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/4895f077-050c-4a43-b729-0c7add591cdc.png" alt="preprocessor_error3.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/839809</link><guid isPermaLink="true">https://forum.qt.io/post/839809</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Fri, 21 Aug 2026 07:40:08 GMT</pubDate></item><item><title><![CDATA[Reply to Submodule QML module not found (MySubmoduleName) on Fri, 21 Aug 2026 06:31:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dspuz">@<bdi>DSpUz</bdi></a> That error comes from the old QML code model.</p>
<p dir="auto">Please enable the new QML Language Server: <a href="https://doc.qt.io/qtcreator/creator-how-to-use-qml-language-server.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qtcreator/creator-how-to-use-qml-language-server.html</a></p>
]]></description><link>https://forum.qt.io/post/839806</link><guid isPermaLink="true">https://forum.qt.io/post/839806</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 21 Aug 2026 06:31:43 GMT</pubDate></item><item><title><![CDATA[Reply to Submodule QML module not found (MySubmoduleName) on Thu, 20 Aug 2026 18:16:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You need to add some details:</p>
<ul>
<li>Which version of Qt Creator are you using ?</li>
<li>Which version of Qt ?</li>
<li>Did you change any settings related to the code model ?</li>
</ul>
]]></description><link>https://forum.qt.io/post/839802</link><guid isPermaLink="true">https://forum.qt.io/post/839802</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 20 Aug 2026 18:16:28 GMT</pubDate></item></channel></rss>