<?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[Qt Creator 18.0 doesn&#x27;t read typeinfo for C++ classes from module]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm working with Qt 6.7 with Qt Creator 18.0.</p>
<p dir="auto">I've got 10 modules with C++ classes registered with QML_ELEMENT (sometimes with QML_SINGLETON).</p>
<ul>
<li>Modules are created with <code>qt_add_qml_module</code>.</li>
<li>Source for modules are in <code>src/&lt;actions|devices|store&gt;</code>.</li>
<li>URI follow <code>core.actions</code>, <code>core.devices</code>, <code>core.store</code>, etc.</li>
<li>OUTPUT_DIRECTORY follow <code>"${CMAKE_BINARY_DIR}/core/actions"</code>.</li>
<li>In <code>CMakeLists.txt</code> in root folder I specified</li>
</ul>
<pre><code>set(QML_IMPORT_PATH
    ${CMAKE_CURRENT_SOURCE_DIR}/qml
    ${CMAKE_CURRENT_SOURCE_DIR}/src
    CACHE STRING "" FORCE
)
</code></pre>
<ul>
<li>Added <code>-DQT_QML_GENERATE_QMLLS_INI=ON</code> to CMake for configuration</li>
<li>At <code>"${CMAKE_BINARY_DIR}/core/actions"</code> there are
<ul>
<li><code>qmldir</code> (with <strong>module</strong>, <strong>plugin</strong>, <strong>classname</strong>, <strong>typeinfo</strong> and <strong>prefer</strong> fields pointing to existing elements)</li>
<li><code>coreActions.qmltypes</code> which contains entries for hpp files with provided properties, methods and signals.</li>
</ul>
</li>
<li>Line <code>import core.actions</code> Qt Creator doesn't highlight as faulty.</li>
<li>Qt Creator <code>Tools &gt; QML/JS &gt; Reset Code Model</code> and <code>Tools &gt; C++ &gt; Update Pottentialy State Clangd Index Entries</code> called and Qt Creator restarted</li>
</ul>
<p dir="auto">Application compiles and works fine. In GammaRay in Resources panel there're URI for C++ modules with qmldir inside.<br />
WHY Qt Creator fails to <code>Follow symbol under cursor (F2)</code> or <code>Ctrl-[</code> for any C++ class used as property type? (PS: At first I couldn't even F2 on <code>DeviceActions {}</code> - but somehow it started working.)</p>
<pre><code>import core.actions

Item {
    property DeviceActions devActions: DeviceActions {}
}
</code></pre>
<p dir="auto">Follow up: In Jetbrains CLion and VS Code I can use QML Language Server to support code completion and suggestions.<br />
Everything is as above. Jump to QML components sources works fine. Jump to C++ classes source fails.<br />
How can I help QMLLS to provide needed configurations or parameters?</p>
]]></description><link>https://forum.qt.io/topic/163669/qt-creator-18.0-doesn-t-read-typeinfo-for-c-classes-from-module</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 06:05:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163669.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Nov 2025 08:55:32 GMT</pubDate><ttl>60</ttl></channel></rss>