<?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[Error : can&#x27;t run my program]]></title><description><![CDATA[<p dir="auto">Hello everyone, I'm new, and I'm trying to use qt for a Linux application.</p>
<p dir="auto">I'm on Linux mint and the version of qt I'm using is 5.12.8.</p>
<p dir="auto">I created an empty project to start with. My pro file contains the following configuration:</p>
<pre><code>SOURCES += \
    main.cpp
QT += core
QT += widgets

</code></pre>
<p dir="auto">and my main.cpp contains the following code:</p>
<pre><code>#include &lt;QApplicationStateChangeEvent&gt;

int main(int argc, char *argv[]) {
   QApplication app(argc,argv);

    return app.exec();
}

</code></pre>
<p dir="auto">The problem is that qt tells me on line 4:<br />
variable has incomplete type Qapplication.</p>
<p dir="auto">Can you help me solve this problem, thank you in advance.</p>
]]></description><link>https://forum.qt.io/topic/117123/error-can-t-run-my-program</link><generator>RSS for Node</generator><lastBuildDate>Wed, 05 Aug 2026 05:13:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/117123.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Jul 2020 04:15:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error : can&#x27;t run my program on Mon, 20 Jul 2020 08:18:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cybersnake">@<bdi>CyberSnake</bdi></a><br />
You are claiming that if you copy &amp; paste the following code:</p>
<pre><code>#include &lt;QApplication&gt;

int main(int argc, char *argv[])
{
   QApplication app(argc,argv);

    return app.exec();
}
</code></pre>
<p dir="auto">you will get <em>one</em> error message of</p>
<pre><code>variable has incomplete type QApplication.
</code></pre>
<p dir="auto">Is that right?  If you copy &amp; paste the above?  With no other error about not being able to find the header file?  Is this a compile-time error, or a message from <strong>Qt Creator</strong> when you just look at the code?</p>
]]></description><link>https://forum.qt.io/post/607779</link><guid isPermaLink="true">https://forum.qt.io/post/607779</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 20 Jul 2020 08:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to Error : can&#x27;t run my program on Sun, 19 Jul 2020 16:14:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cybersnake">@<bdi>CyberSnake</bdi></a> Instead of looking for a needle in a haystack, are you able to build and run any Qt example?</p>
]]></description><link>https://forum.qt.io/post/607679</link><guid isPermaLink="true">https://forum.qt.io/post/607679</guid><dc:creator><![CDATA[Pablo J. Rogina]]></dc:creator><pubDate>Sun, 19 Jul 2020 16:14:15 GMT</pubDate></item><item><title><![CDATA[Reply to Error : can&#x27;t run my program on Sat, 18 Jul 2020 22:36:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hskoglund">@<bdi>hskoglund</bdi></a> Typing mistake... But even with QApplication I have the same mistake.</p>
]]></description><link>https://forum.qt.io/post/607624</link><guid isPermaLink="true">https://forum.qt.io/post/607624</guid><dc:creator><![CDATA[CyberSnake]]></dc:creator><pubDate>Sat, 18 Jul 2020 22:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to Error : can&#x27;t run my program on Sat, 18 Jul 2020 22:33:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi, also please check, on line 4, that you have written<br />
QApplication<br />
and not<br />
Qapplication</p>
]]></description><link>https://forum.qt.io/post/607623</link><guid isPermaLink="true">https://forum.qt.io/post/607623</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Sat, 18 Jul 2020 22:33:22 GMT</pubDate></item><item><title><![CDATA[Reply to Error : can&#x27;t run my program on Sat, 18 Jul 2020 22:20:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/607529">Error : can't run my program</a>:</p>
<blockquote>
<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">You are missing</p>
<pre><code>#include &lt;QApplication&gt;
</code></pre>
<p dir="auto">in your main.cpp file.</p>
</blockquote>
<p dir="auto">Hello again.</p>
<p dir="auto">I had inclued &lt;QApplication&gt; but i have the same error :(</p>
]]></description><link>https://forum.qt.io/post/607622</link><guid isPermaLink="true">https://forum.qt.io/post/607622</guid><dc:creator><![CDATA[CyberSnake]]></dc:creator><pubDate>Sat, 18 Jul 2020 22:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to Error : can&#x27;t run my program on Sat, 18 Jul 2020 06:07:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">You are missing</p>
<pre><code>#include &lt;QApplication&gt;
</code></pre>
<p dir="auto">in your main.cpp file.</p>
]]></description><link>https://forum.qt.io/post/607529</link><guid isPermaLink="true">https://forum.qt.io/post/607529</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 18 Jul 2020 06:07:29 GMT</pubDate></item></channel></rss>