<?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[What might be causing the errors reported here?]]></title><description><![CDATA[<p dir="auto">I was making some adjustments, in another subproject, when I suddenly noticed that the subproject that involves UI development started to crash without me even messing with anything in it.</p>
<p dir="auto">I created a new project from scratch to check if there was any relationship with my project settings, and even the new project also has the same error:</p>
<pre><code>teste.h:12:5: error: incomplete result type 'QString' in function definition
qobjectdefs.h:182:5: note: expanded from macro 'Q_OBJECT'
qobjectdefs.h:140:27: note: expanded from macro 'QT_TR_FUNCTIONS'
qglobal.h:768:7: note: forward declaration of 'QString'

teste.h:12:5: error: calling 'tr' with incomplete return type 'QString'
qobjectdefs.h:182:5: note: expanded from macro 'Q_OBJECT'
qobjectdefs.h:141:35: note: expanded from macro 'QT_TR_FUNCTIONS'
qobjectdefs.h:348:13: note: 'tr' declared here
qglobal.h:768:7: note: forward declaration of 'QString'

teste.h:12:5: error: incomplete result type 'QString' in function definition
qobjectdefs.h:182:5: note: expanded from macro 'Q_OBJECT'
qobjectdefs.h:142:41: note: expanded from macro 'QT_TR_FUNCTIONS'
qglobal.h:768:7: note: forward declaration of 'QString'

teste.h:12:5: error: incomplete result type 'QString' in function definition
qobjectdefs.h:182:5: note: expanded from macro 'Q_OBJECT'
qobjectdefs.h:142:41: note: expanded from macro 'QT_TR_FUNCTIONS'
qglobal.h:768:7: note: forward declaration of 'QString'

teste.h:12:5: error: calling 'tr' with incomplete return type 'QString'
qobjectdefs.h:182:5: note: expanded from macro 'Q_OBJECT'
qobjectdefs.h:143:35: note: expanded from macro 'QT_TR_FUNCTIONS'
qobjectdefs.h:348:13: note: 'tr' declared here
qglobal.h:768:7: note: forward declaration of 'QString'
</code></pre>
<p dir="auto">How to fix such problem?</p>
]]></description><link>https://forum.qt.io/topic/129786/what-might-be-causing-the-errors-reported-here</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 00:22:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/129786.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Aug 2021 15:50:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What might be causing the errors reported here? on Thu, 26 Aug 2021 16:15:15 GMT]]></title><description><![CDATA[<p dir="auto">add<br />
#include &lt;QString&gt;<br />
in test.h</p>
]]></description><link>https://forum.qt.io/post/677952</link><guid isPermaLink="true">https://forum.qt.io/post/677952</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Thu, 26 Aug 2021 16:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to What might be causing the errors reported here? on Thu, 26 Aug 2021 16:16:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/carlos-delfino">@<bdi>Carlos-Delfino</bdi></a> said in <a href="/post/677945">What might be causing the errors reported here?</a>:</p>
<blockquote>
<p dir="auto"><code>teste.h:12:5: error: incomplete result type 'QString' in function definition</code></p>
</blockquote>
<p dir="auto">Show at least up to line #12 of <code>teste.h</code> where this error comes from.  We should see what lines precede it.  I believe <code>teste.h</code> is your own file, not Qt's?  We also need to see where you include <code>teste.h</code> into your <code>.cpp</code>/<code>.h</code>file, again to see the lines which precede it.  Looks like you have included <code>&lt;QString&gt;</code> where it's needed.</p>
]]></description><link>https://forum.qt.io/post/677951</link><guid isPermaLink="true">https://forum.qt.io/post/677951</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 26 Aug 2021 16:16:08 GMT</pubDate></item></channel></rss>