<?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[Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found]]></title><description><![CDATA[<p dir="auto">I'm trying to build a project I have.  In Qt 5, it builds fine. In Qt 6.1.2 I get the errors listed in the title of this post, as well as<br />
'QStateMachine': No such file or directory</p>
<p dir="auto">I'm also getting these errors for QState, minus the unknown type error.</p>
<p dir="auto">Currently, the official Qt6 Documentation says QStateMachine exists in the language. I know it was not put in right at the 6.0 release, but they added it between then and 6.1.2.  Thus it is pretty confusing to be getting these build errors.  Any idea what's going wrong here?</p>
]]></description><link>https://forum.qt.io/topic/129130/qt6-1-2-unknown-type-qstatemachine-qstatemachine-file-not-found</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 10:53:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/129130.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Aug 2021 19:15:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Thu, 12 Aug 2021 18:16:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qtqrustacean">@<bdi>QtQrustacean</bdi></a> You may need to re-install Qt. I installed the default Qt for Desktop Applications from the installer (6.1.2), and had the same problem you did. By deleting that version of Qt and doing the Custom build, I was able to select Qt 6.1.2 and then add the Qt StateMachine package in the same area. So far, what I did is working.</p>
]]></description><link>https://forum.qt.io/post/675574</link><guid isPermaLink="true">https://forum.qt.io/post/675574</guid><dc:creator><![CDATA[ClemRGRA]]></dc:creator><pubDate>Thu, 12 Aug 2021 18:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Fri, 06 Aug 2021 14:41:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> Yes, when I click The project name above the icon of a screen to set the build config, it shows 6.1.2 .  This is what the toolbar menu action, Build &gt; Open Build and Run Kit Selector  opens as well.</p>
]]></description><link>https://forum.qt.io/post/674680</link><guid isPermaLink="true">https://forum.qt.io/post/674680</guid><dc:creator><![CDATA[QtQrustacean]]></dc:creator><pubDate>Fri, 06 Aug 2021 14:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Fri, 06 Aug 2021 04:20:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qtqrustacean">@<bdi>QtQrustacean</bdi></a> Did you make sure that you use the auto-detected 6.1.2 Kit for building?</p>
]]></description><link>https://forum.qt.io/post/674572</link><guid isPermaLink="true">https://forum.qt.io/post/674572</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 06 Aug 2021 04:20:52 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Thu, 05 Aug 2021 19:56:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eyllanesc">@<bdi>eyllanesc</bdi></a> Ok I used the tool to install Qt State Machines, but when I tried to build without the line QT += statemachine in my .pro file, I got the same errors as before. If I added that line, I got the error: Unknown module(s) in QT: statemachine  So even though I installed Qt State Machines, nothing seems to have changed.  I confirmed with the maintenance tool that it is actually installed.</p>
]]></description><link>https://forum.qt.io/post/674539</link><guid isPermaLink="true">https://forum.qt.io/post/674539</guid><dc:creator><![CDATA[QtQrustacean]]></dc:creator><pubDate>Thu, 05 Aug 2021 19:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Thu, 05 Aug 2021 15:16:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eyllanesc">@<bdi>eyllanesc</bdi></a>  <img src="https://ddgobkiprc33d.cloudfront.net/3178bf80-a2d0-41d9-a554-89b30999a276.PNG" alt="Kit settings.PNG" class=" img-fluid img-markdown" /> image url)</p>
]]></description><link>https://forum.qt.io/post/674513</link><guid isPermaLink="true">https://forum.qt.io/post/674513</guid><dc:creator><![CDATA[QtQrustacean]]></dc:creator><pubDate>Thu, 05 Aug 2021 15:16:47 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Thu, 05 Aug 2021 14:41:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eyllanesc">@<bdi>eyllanesc</bdi></a> I think so.</p>
<p dir="auto">I'm on Windows 10.  I downloaded the Qt Online Installer (qt-unified-windows-x86-4.1.1-online.exe) from Qt's site and followed its prompts to install.</p>
<p dir="auto">In Qt Creator 4.15.2, when I go to Tools&gt;Options, the Kit auto-detect for my project says Desktop Qt 6.1.2 MinGW 64-bit.</p>
]]></description><link>https://forum.qt.io/post/674511</link><guid isPermaLink="true">https://forum.qt.io/post/674511</guid><dc:creator><![CDATA[QtQrustacean]]></dc:creator><pubDate>Thu, 05 Aug 2021 14:41:58 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Wed, 04 Aug 2021 20:48:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qtqrustacean">@<bdi>QtQrustacean</bdi></a> Are you sure you are using Qt6.1 or higher? QStateMachine was moved to a new module called QtStateMachine so you must add <code>QT += statemachine</code> to the .pro as indicated in the docs: <a href="https://doc.qt.io/qt-6/qstatemachine.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qstatemachine.html</a> . Maybe you need to install this module so run the Qt Maintenance Tool and verify that this module is installed, and if not then install it.</p>
<p dir="auto">Also it would be good if you indicate what your OS is and how you have installed Qt6</p>
]]></description><link>https://forum.qt.io/post/674345</link><guid isPermaLink="true">https://forum.qt.io/post/674345</guid><dc:creator><![CDATA[eyllanesc]]></dc:creator><pubDate>Wed, 04 Aug 2021 20:48:44 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Wed, 04 Aug 2021 20:16:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eyllanesc">@<bdi>eyllanesc</bdi></a> said in <a href="/post/674329">Qt6.1.2: unknown type 'QStateMachine'; 'QStateMachine' file not found</a>:</p>
<blockquote>
<p dir="auto">QT += statemachine</p>
</blockquote>
<p dir="auto">I tried that at the top of my .pro, and got this build error:<br />
error: Unknown module(s) in QT: statemachine</p>
]]></description><link>https://forum.qt.io/post/674342</link><guid isPermaLink="true">https://forum.qt.io/post/674342</guid><dc:creator><![CDATA[QtQrustacean]]></dc:creator><pubDate>Wed, 04 Aug 2021 20:16:21 GMT</pubDate></item><item><title><![CDATA[Reply to Qt6.1.2: unknown type &#x27;QStateMachine&#x27;; &#x27;QStateMachine&#x27; file not found on Wed, 04 Aug 2021 19:22:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qtqrustacean">@<bdi>QtQrustacean</bdi></a> said in <a href="/post/674325">Qt6.1.2: unknown type 'QStateMachine'; 'QStateMachine' file not found</a>:</p>
<blockquote>
<p dir="auto">QStateMachine</p>
</blockquote>
<p dir="auto">add <code>QT += statemachine</code> in your .pro</p>
]]></description><link>https://forum.qt.io/post/674329</link><guid isPermaLink="true">https://forum.qt.io/post/674329</guid><dc:creator><![CDATA[eyllanesc]]></dc:creator><pubDate>Wed, 04 Aug 2021 19:22:50 GMT</pubDate></item></channel></rss>