<?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[Working example using ENABLE_TYPE_COMPILER]]></title><description><![CDATA[<p dir="auto">Hi all</p>
<p dir="auto">I moved my android app from qt 5 to new version6 but I'm still unable to compile the qml files into c++. Based to the documentation is required to add the ENABLE_TYPE_COMPILER to qt_add_qml_module() but it doesn't compile. One of the error is :</p>
<p dir="auto"><em>Error: QtQuick.Controls uses optional imports which are not supported. Some types might not be found</em></p>
<p dir="auto">Explanation for this error is <a href="https://www.qt.io/blog/compiling-qml-to-c-qtquick-controls-and-optional-imports" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> but solution proposed doesn't work for me and I receive always the same error. I can not find a working example using this flag (I'm compiling for android). Someone can link me to some example around (if exist)?<br />
Thank you</p>
]]></description><link>https://forum.qt.io/topic/145730/working-example-using-enable_type_compiler</link><generator>RSS for Node</generator><lastBuildDate>Sun, 01 Nov 2026 02:42:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145730.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jun 2023 19:45:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Working example using ENABLE_TYPE_COMPILER on Thu, 09 Nov 2023 15:54:06 GMT]]></title><description><![CDATA[<p dir="auto">Apparently this has something to do with QtQuick.Controls dynamically loading styles as runtime. See this post:</p>
<p dir="auto"><a href="https://www.qt.io/blog/compiling-qml-to-c-qtquick-controls-and-optional-imports" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.qt.io/blog/compiling-qml-to-c-qtquick-controls-and-optional-imports</a></p>
]]></description><link>https://forum.qt.io/post/779284</link><guid isPermaLink="true">https://forum.qt.io/post/779284</guid><dc:creator><![CDATA[Kai Nickel]]></dc:creator><pubDate>Thu, 09 Nov 2023 15:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to Working example using ENABLE_TYPE_COMPILER on Wed, 08 Nov 2023 01:27:39 GMT]]></title><description><![CDATA[<p dir="auto">Same here, not working. Trying to do it based on this article: <a href="https://www.qt.io/blog/compiling-qml-to-c-qtquick-controls-and-optional-imports" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.qt.io/blog/compiling-qml-to-c-qtquick-controls-and-optional-imports</a></p>
]]></description><link>https://forum.qt.io/post/779087</link><guid isPermaLink="true">https://forum.qt.io/post/779087</guid><dc:creator><![CDATA[Sazonov]]></dc:creator><pubDate>Wed, 08 Nov 2023 01:27:39 GMT</pubDate></item><item><title><![CDATA[Reply to Working example using ENABLE_TYPE_COMPILER on Wed, 02 Aug 2023 10:53:21 GMT]]></title><description><![CDATA[<p dir="auto">Same error here, using qt 6.5.2, also tested with qt 6.5.1</p>
<p dir="auto">the qt_add_qml_module in cmake:</p>
<pre><code>qt_add_qml_module(appThings
    URI Things
	RESOURCE_PREFIX /
    VERSION 1.0
	NO_PLUGIN
	DEPENDENCIES
		QtQuick
	IMPORTS
		${QUICK_CONTROLS} # same as in given source
	SOURCES
            ...
        QML_FILES
            ...
        RESOURCES
            ...
        ENABLE_TYPE_COMPILER
)
</code></pre>
]]></description><link>https://forum.qt.io/post/767281</link><guid isPermaLink="true">https://forum.qt.io/post/767281</guid><dc:creator><![CDATA[SomeWhat]]></dc:creator><pubDate>Wed, 02 Aug 2023 10:53:21 GMT</pubDate></item></channel></rss>