<?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[Something about include file]]></title><description><![CDATA[<p dir="auto">yesterday I download and install QT-5.3 on my linux(ubuntukylin),today I try to compile my first QT-project.<br />
I write the code by VIM like like this :<br />
@#include&lt;QApplication&gt;<br />
#include&lt;QLabel&gt;<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);<br />
QLabel *label = new QLabel("Hello Qt!");<br />
label-&gt;show();<br />
return app.exec();<br />
}@<br />
I save this file when I finished , and the file's path is /home/jxf/TestQt<br />
then commond:<br />
cd /home/jxf/TestQt<br />
qmake -project<br />
qmake <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a></p>
<p dir="auto">so far,everything is going well<br />
when I used last commond : make<br />
the system tell me,"fatal error: QApplication: No such file or directory",</p>
<p dir="auto">then I try to find answer in inter,and someone tell me put  "QT += widgets" in <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a>.</p>
<p dir="auto">I do like this and compile again,but system tell me "fatal error: Qlabel: No such file or directory" this time,</p>
<p dir="auto">others in inernet tell me modify source code file,<br />
#include&lt;QtWidgets/QLabel&gt; replace #include&lt;QLabel&gt;,<br />
but when I make ,system still tell me fatal error: Qlabel: No such file or directory</p>
<p dir="auto">How can I do....</p>
]]></description><link>https://forum.qt.io/topic/42542/something-about-include-file</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 11:10:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42542.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jun 2014 03:20:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Something about include file on Mon, 16 Jun 2014 04:39:28 GMT]]></title><description><![CDATA[<p dir="auto">I copied your files and it run without any errors.</p>
<p dir="auto">Is it possible that you have another version of Qt installed?<br />
Qt-4 that comes with Ubuntu for example.</p>
<p dir="auto">Try to run qmake from Qt-5.3 using full path.<br />
Something like this<br />
@<br />
$HOME/Qt/5.3/gcc_64/bin/qmake<br />
@</p>
]]></description><link>https://forum.qt.io/post/232004</link><guid isPermaLink="true">https://forum.qt.io/post/232004</guid><dc:creator><![CDATA[andreyc]]></dc:creator><pubDate>Mon, 16 Jun 2014 04:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to Something about include file on Sun, 15 Jun 2014 06:20:28 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="andreyc" date="1402808566"]Could you show <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a> ?<br />
Did you run qmake to regenerate Makefile after you have changed <a href="http://TestQt.pro?%5B/quote%5D" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro?[/quote]</a><br />
Could you show <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a> ?<br />
ls -l /home/jxf/testQt<br />
qt.cxx<br />
<a href="http://testQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">testQt.pro</a><br />
Makefile</p>
<p dir="auto">vim /home/jxf/testQt/testQt.pro</p>
<p dir="auto">TEMPLATE = app<br />
TARGET = testQt<br />
INCLUDEPATHPATH +=.<br />
#Input<br />
SOURCES +=qt.cxx<br />
QT += widgets</p>
<p dir="auto">Did you run qmake to regenerate Makefile after you have changed <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a>?<br />
if I hadn't input "QT += widgets",system will tell me " fatal error: QApplication: No such file or directory" when I using commond "make".<br />
if I had input like source file,system will tell me "fatal error: Qlabel: No such file or directory".</p>
]]></description><link>https://forum.qt.io/post/231946</link><guid isPermaLink="true">https://forum.qt.io/post/231946</guid><dc:creator><![CDATA[qazaq408]]></dc:creator><pubDate>Sun, 15 Jun 2014 06:20:28 GMT</pubDate></item><item><title><![CDATA[Reply to Something about include file on Sun, 15 Jun 2014 05:02:46 GMT]]></title><description><![CDATA[<p dir="auto">Could you show <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a> ?<br />
Did you run qmake to regenerate Makefile after you have changed <a href="http://TestQt.pro" target="_blank" rel="noopener noreferrer nofollow ugc">TestQt.pro</a>?</p>
]]></description><link>https://forum.qt.io/post/231945</link><guid isPermaLink="true">https://forum.qt.io/post/231945</guid><dc:creator><![CDATA[andreyc]]></dc:creator><pubDate>Sun, 15 Jun 2014 05:02:46 GMT</pubDate></item></channel></rss>