<?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[import ModelViewDelegate fails]]></title><description><![CDATA[<p dir="auto">Hello fellow Qt Devs,</p>
<p dir="auto">importing ModelViewDelegate fails both on Qt 6.9.3 and on 6.11.1, and the submodule is not mine but from the<br />
QML basics tutorial:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/a0fbfac3-3c1c-4a38-8d13-de22996b2269.png" alt="ModelViewDelegate_fail.png" class=" img-fluid img-markdown" /><br />
How do I import it if its not on my system by default for some reason?</p>
<p dir="auto">Cheers,<br />
DSU</p>
]]></description><link>https://forum.qt.io/topic/165018/import-modelviewdelegate-fails</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 11:42:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165018.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Aug 2026 10:27:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to import ModelViewDelegate fails on Wed, 19 Aug 2026 11:54:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dspuz">@<bdi>DSpUz</bdi></a> my laptop was bad so i couldnt reply</p>
]]></description><link>https://forum.qt.io/post/839787</link><guid isPermaLink="true">https://forum.qt.io/post/839787</guid><dc:creator><![CDATA[AwesomeProgrammer]]></dc:creator><pubDate>Wed, 19 Aug 2026 11:54:46 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Wed, 19 Aug 2026 01:45:06 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/839774">import ModelViewDelegate fails</a>:</p>
<blockquote>
<p dir="auto">Anyways, I changed the applications name to a custom one (not ModelViewDelegate), and thus I should have changed that import to import {customAppName}, doing it like that resolves the build errors.<br />
Still the "<em>Property 'sendRequest' of object Requester is not a function</em>" run-time error is not resolved, but that is for another post.</p>
</blockquote>
<p dir="auto">👍</p>
<blockquote>
<p dir="auto">I am using Qt Creator 20.0.1, that QML_IMPORT_PATH is set because when i choose 6.8 and up (instead of 6.10 and up), there is a checkbox for that QML_IMPORT_PATH which is selected automatically.</p>
</blockquote>
<p dir="auto">My bad, I misdiagnosed the message. That particular appeared because the QML Language Server is disabled (see <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>
<p dir="auto">The checkbox is for <code>QT_QML_GENERATE_QMLLS_INI</code> (deprecated since Qt 6.10), rather than <code>QML_IMPORT_PATH</code> (deprecated since Qt 6.5, or some might say Qt 6.2).</p>
]]></description><link>https://forum.qt.io/post/839782</link><guid isPermaLink="true">https://forum.qt.io/post/839782</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Wed, 19 Aug 2026 01:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Tue, 18 Aug 2026 14:33:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> I am using Qt Creator 20.0.1, that QML_IMPORT_PATH is set because when i choose 6.8 and up (instead of 6.10 and up), there is a checkbox for that QML_IMPORT_PATH which is selected automatically.<br />
Anyways, I changed the applications name to a custom one (not ModelViewDelegate), and thus I should have changed that import to import {customAppName}, doing it like that resolves the build errors.<br />
Still the "<em>Property 'sendRequest' of object Requester is not a function</em>" run-time error is not resolved, but that is for another post.</p>
]]></description><link>https://forum.qt.io/post/839774</link><guid isPermaLink="true">https://forum.qt.io/post/839774</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Tue, 18 Aug 2026 14:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Tue, 18 Aug 2026 14:03:12 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/839769">import ModelViewDelegate fails</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> It is this one <a href="https://academy.qt.io/content-details/337375027/2" target="_blank" rel="noopener noreferrer nofollow ugc">https://academy.qt.io/content-details/337375027/2</a></p>
</blockquote>
<p dir="auto">The example code for that tutorial is at <a href="https://github.com/qt-learning/Model-View-Delegate" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt-learning/Model-View-Delegate</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dspuz">@<bdi>DSpUz</bdi></a> said in <a href="/post/839754">import ModelViewDelegate fails</a>:</p>
<blockquote>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/a0fbfac3-3c1c-4a38-8d13-de22996b2269.png" alt="ModelViewDelegate_fail.png" class=" img-fluid img-markdown" /><br />
How do I import it if its not on my system by default for some reason?</p>
</blockquote>
<p dir="auto">That project's QML files can use <code>import ModelViewDelegate</code> because there is a project-specific QML module (see <a href="https://github.com/qt-learning/Model-View-Delegate/blob/main/00_InitialProject/CMakeLists.txt#L28-L29" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt-learning/Model-View-Delegate/blob/main/00_InitialProject/CMakeLists.txt#L28-L29</a> ):</p>
<pre><code>qt_add_qml_module(appModelViewDelegate
    URI ModelViewDelegate
    ...
)
</code></pre>
<p dir="auto">One more thing: What version of Qt Creator are you using? Your screenshot shows that it's recommending that you set <code>QML_IMPORT_PATH</code>, but that was deprecated long ago. If Qt Creator is too old, it won't know how to find your project-specific module. (If this is the case, you'll see invalid errors/warnings in your code editor, but your project can still run fine)</p>
]]></description><link>https://forum.qt.io/post/839772</link><guid isPermaLink="true">https://forum.qt.io/post/839772</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 18 Aug 2026 14:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Tue, 18 Aug 2026 06:38:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/awesomeprogrammer">@<bdi>AwesomeProgrammer</bdi></a> ListModel is being used in the LiveWeatherModel submodule, and ListView is being used in the Main, but main already has the appropriate include "import Qt.labs.folderlistmodel"<br />
By changing ModelViewDelegate import to "import Qt.labs.qmlmodels" I was at least able to build and run it however some other issue appeared where in LiveLocationModel Requesters function does not get recognized for some reason<br />
<img src="https://ddgobkiprc33d.cloudfront.net/28092a17-4c0f-40d9-ae9a-1d3d684f0bde.png" alt="requester_error.png" class=" img-fluid img-markdown" /><br />
so the App gets frozen on locations retrieval</p>
]]></description><link>https://forum.qt.io/post/839770</link><guid isPermaLink="true">https://forum.qt.io/post/839770</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Tue, 18 Aug 2026 06:38:58 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Tue, 18 Aug 2026 06:23:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> It is this one <a href="https://academy.qt.io/content-details/337375027/2" target="_blank" rel="noopener noreferrer nofollow ugc">https://academy.qt.io/content-details/337375027/2</a></p>
]]></description><link>https://forum.qt.io/post/839769</link><guid isPermaLink="true">https://forum.qt.io/post/839769</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Tue, 18 Aug 2026 06:23:47 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Tue, 18 Aug 2026 03:29:37 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/839754">import ModelViewDelegate fails</a>:</p>
<blockquote>
<p dir="auto">the submodule is not mine but from the<br />
QML basics tutorial</p>
</blockquote>
<p dir="auto">I'm not familiar with this tutorial. Can you please share a link to it?</p>
]]></description><link>https://forum.qt.io/post/839767</link><guid isPermaLink="true">https://forum.qt.io/post/839767</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 18 Aug 2026 03:29:37 GMT</pubDate></item><item><title><![CDATA[Reply to import ModelViewDelegate fails on Mon, 17 Aug 2026 19:27:25 GMT]]></title><description><![CDATA[<p dir="auto">i think you should use<br />
"import Qt.labs.qmlmodels"<br />
can you tell me which model you are using and which view</p>
]]></description><link>https://forum.qt.io/post/839763</link><guid isPermaLink="true">https://forum.qt.io/post/839763</guid><dc:creator><![CDATA[AwesomeProgrammer]]></dc:creator><pubDate>Mon, 17 Aug 2026 19:27:25 GMT</pubDate></item></channel></rss>