<?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[How to use QML_IMPORT_PATH with Qt Cmake Project?]]></title><description><![CDATA[<p dir="auto"><strong>I need to provide some modules for project.</strong></p>
<p dir="auto">Now, it looks for them in QT directory(I've installed it in <code>$HOME</code>), but instead of it I want to make it search in <code>/usr/lib/x86_64-linux-gnu/qt5/qml/</code>.</p>
<p dir="auto"><strong>What I have tried:</strong><br />
<strong>a)</strong> Defining <code>QML_IMPORT_PATH</code> in <code>.bashrc</code> - didn't work out</p>
<p dir="auto"><strong>b)</strong> Copying needed module in <code>$HOME/Qt5.5.1/Tools/QtCreator/bin/qml/</code>:</p>
<p dir="auto">Here we have something different. If I open of the <code>.qml</code> files - it wouldn't underscore <code>import</code> line (which is ok). But, If I run executable with console - the same message module <code>org.bla.bla</code> is not installed.</p>
<p dir="auto">So, If copying didn't help, maybe I had to just make QtCreator(or smth else) search for modules in appropriate folder, but how?</p>
]]></description><link>https://forum.qt.io/topic/61904/how-to-use-qml_import_path-with-qt-cmake-project</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 02:14:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/61904.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Dec 2015 12:06:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use QML_IMPORT_PATH with Qt Cmake Project? on Sat, 19 Dec 2015 13:10:04 GMT]]></title><description><![CDATA[<p dir="auto">Ok, it seems I can provide module's path with <code>QML2_IMPORT_PATH</code>. But it doesn't solve my issue since message stays.</p>
]]></description><link>https://forum.qt.io/post/303523</link><guid isPermaLink="true">https://forum.qt.io/post/303523</guid><dc:creator><![CDATA[sosun]]></dc:creator><pubDate>Sat, 19 Dec 2015 13:10:04 GMT</pubDate></item></channel></rss>