<?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[Compiler error after reinstalling Qt]]></title><description><![CDATA[<p dir="auto">I recently had to reinstall Qt on my system. Was earlier using Qt creator 7.0.2 community it got upgraded to Qt Creator 12. I chose the same supporting Qt version 5.15.2 as was used before from Qt installer tool. When trying to build the project which I was working on, I get the following error:</p>
<p dir="auto">uic: Error in line 498, column 27 : Unexpected element fontweight<br />
File '..&lt;projectname-removed for privacy&gt;\settings.ui' is not valid<br />
jom: &lt;build path&gt;\Makefile.Release [ui_settings.h] Error 1</p>
<p dir="auto">jom: &lt;build path&gt;\Makefile [release] Error 2<br />
16:22:07: The process "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" exited with code 2.<br />
Error while building/deploying project &lt;project name&gt; (kit: Desktop Qt 5.15.2 MSVC2019 64bit)<br />
When executing step "Make"</p>
<p dir="auto">There appears to be a mismatch in how Qt was reading UI files before and after. I checked the design file, the error is thrown for a push button randomly, whereas there are many other screens with QPushButtons.</p>
<p dir="auto">What could be the reason for this error.. I am totally lost. Would really appreciate any help. Attaching the kits and compilers being currently used<img src="https://ddgobkiprc33d.cloudfront.net/b031b78f-187b-4f8e-9477-8a879cb75321.png" alt="Screenshot 2024-03-14 163429.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/155312/compiler-error-after-reinstalling-qt</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 03:26:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/155312.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Mar 2024 11:06:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Mon, 18 Mar 2024 07:47:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adviinfo">@<bdi>AdviInfo</bdi></a> said in <a href="/post/793600">Compiler error after reinstalling Qt</a>:</p>
<blockquote>
<p dir="auto">Is there any way to import older ui files/projects as a whole to newer Qt versions?</p>
</blockquote>
<p dir="auto">Well doubtless not (other than using an older <code>uic</code>), else it would have said so?  I don't know how old it is if <strong>fontweight</strong> used to exist but no longer does.  Anyway, suggest you use a text editor/substitution script across your <code>.ui</code> files to make whatever change is necessary.</p>
]]></description><link>https://forum.qt.io/post/793618</link><guid isPermaLink="true">https://forum.qt.io/post/793618</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 18 Mar 2024 07:47:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Wed, 17 Apr 2024 12:20:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> That actually worked. Thank you!</p>
]]></description><link>https://forum.qt.io/post/797031</link><guid isPermaLink="true">https://forum.qt.io/post/797031</guid><dc:creator><![CDATA[AdviInfo]]></dc:creator><pubDate>Wed, 17 Apr 2024 12:20:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Mon, 18 Mar 2024 07:47:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adviinfo">@<bdi>AdviInfo</bdi></a> said in <a href="/post/793600">Compiler error after reinstalling Qt</a>:</p>
<blockquote>
<p dir="auto">Is there any way to import older ui files/projects as a whole to newer Qt versions?</p>
</blockquote>
<p dir="auto">Well doubtless not (other than using an older <code>uic</code>), else it would have said so?  I don't know how old it is if <strong>fontweight</strong> used to exist but no longer does.  Anyway, suggest you use a text editor/substitution script across your <code>.ui</code> files to make whatever change is necessary.</p>
]]></description><link>https://forum.qt.io/post/793618</link><guid isPermaLink="true">https://forum.qt.io/post/793618</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 18 Mar 2024 07:47:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Mon, 18 Mar 2024 06:22:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> I checked. The project was created using an older version of Qt. The pushbuttons in designer forms had a property 'fontweight' - which doesn't come up in forms created using the newer version of qt creator which I'm using. There are numerous buttons on different screens, so it's not possible to replace them all. Is there any way to import older ui files/projects as a whole to newer Qt versions?</p>
]]></description><link>https://forum.qt.io/post/793600</link><guid isPermaLink="true">https://forum.qt.io/post/793600</guid><dc:creator><![CDATA[AdviInfo]]></dc:creator><pubDate>Mon, 18 Mar 2024 06:22:19 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Mon, 18 Mar 2024 06:17:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pl45m4">@<bdi>Pl45m4</bdi></a> Using qmake. Tried deleting .pro user file and reselecting the required kit</p>
]]></description><link>https://forum.qt.io/post/793598</link><guid isPermaLink="true">https://forum.qt.io/post/793598</guid><dc:creator><![CDATA[AdviInfo]]></dc:creator><pubDate>Mon, 18 Mar 2024 06:17:12 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Thu, 14 Mar 2024 14:30:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adviinfo">@<bdi>AdviInfo</bdi></a><br />
If you can't find anything else which works.  Try telling <strong>jom</strong> not to do any builds in parallel and see if that goes through.  Just maybe <code>uic</code> was being run to generate <code>ui_settings.h</code> at the same time as compilation was trying to read it?</p>
<p dir="auto">Having said that</p>
<blockquote>
<p dir="auto">File '..&lt;projectname-removed for privacy&gt;\settings.ui' is not valid</p>
</blockquote>
<p dir="auto">implies it does not like the content of the <code>.ui</code> file in the first place.  Is the error repeatable?  I would look at line 498, column 27 to see what is going on.</p>
]]></description><link>https://forum.qt.io/post/793242</link><guid isPermaLink="true">https://forum.qt.io/post/793242</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 14 Mar 2024 14:30:26 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Thu, 14 Mar 2024 13:24:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adviinfo">@<bdi>AdviInfo</bdi></a></p>
<p dir="auto">CMake or QMake?<br />
If you use QMake, delete everything <code>.pro.user</code> related, except your <code>*.pro</code> file of course.</p>
]]></description><link>https://forum.qt.io/post/793236</link><guid isPermaLink="true">https://forum.qt.io/post/793236</guid><dc:creator><![CDATA[Pl45m4]]></dc:creator><pubDate>Thu, 14 Mar 2024 13:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Thu, 14 Mar 2024 12:31:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> Tried it many times. Didn't work</p>
]]></description><link>https://forum.qt.io/post/793233</link><guid isPermaLink="true">https://forum.qt.io/post/793233</guid><dc:creator><![CDATA[AdviInfo]]></dc:creator><pubDate>Thu, 14 Mar 2024 12:31:20 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler error after reinstalling Qt on Thu, 14 Mar 2024 12:27:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adviinfo">@<bdi>AdviInfo</bdi></a> Trx to delete the build folder and rebuild</p>
]]></description><link>https://forum.qt.io/post/793231</link><guid isPermaLink="true">https://forum.qt.io/post/793231</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 14 Mar 2024 12:27:19 GMT</pubDate></item></channel></rss>