<?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[Where to setup QT creator to locate all Qt include files?]]></title><description><![CDATA[<p dir="auto">Qt Creator 1.3.1<br />
Based on Qt 4.6.2 (64 bit)</p>
<p dir="auto">Hello:</p>
<p dir="auto">When I import some files into Qt, I have build errors.<br />
For example,, I declare this include in a file:<br />
@<br />
#include &lt;QHostAddress&gt;<br />
@<br />
When I move cursor over the line the tool tip show this:<br />
usr/qt4/QtNetwork/QHostAddress</p>
<p dir="auto">When I looked into my Linux Ubuntu folder<br />
I only found QHostAddress in this folder:<br />
usr/qt4/QtNetwork</p>
<p dir="auto">So, it seems Qt Creator cannot find the include file.<br />
I was able to compile QT without my imported files.<br />
I am perplex as to why I cannot do so with the inclusion of the imported file, since the includes were all Qt's include files.<br />
Please be specific about how i can tell Qt creator to search appropriate folders.<br />
Cheers.</p>
<p dir="auto">Addition:<br />
I created another test application, and included<br />
#include &lt;QHostAddress&gt;<br />
See below.<br />
@<br />
#include &lt;QtGui/QApplication&gt;<br />
#include "mainwindow.h"<br />
#include &lt;QHostAddress&gt;<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication a(argc, argv);<br />
MainWindow w;<br />
w.show();<br />
return a.exec();<br />
}<br />
@</p>
<p dir="auto">Error warning is this:<br />
QHostAddress:  No such file or directory.</p>
]]></description><link>https://forum.qt.io/topic/6866/where-to-setup-qt-creator-to-locate-all-qt-include-files</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 20:42:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/6866.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jun 2011 17:18:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Where to setup QT creator to locate all Qt include files? on Tue, 21 Jun 2011 18:08:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/loladiro">@<bdi>loladiro</bdi></a> Just once ;)</p>
<p dir="auto">Man you're fast!</p>
]]></description><link>https://forum.qt.io/post/93379</link><guid isPermaLink="true">https://forum.qt.io/post/93379</guid><dc:creator><![CDATA[Eddy]]></dc:creator><pubDate>Tue, 21 Jun 2011 18:08:38 GMT</pubDate></item><item><title><![CDATA[Reply to Where to setup QT creator to locate all Qt include files? on Tue, 21 Jun 2011 18:04:53 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="hpng" date="1308678213"]Where do you find information on what to include inn *;pro file?<br />
Thanks.[/quote]</p>
<p dir="auto">It is indeed a little hidden. But you can find it in the module description (e.g. "here":<a href="http://doc.qt.nokia.com/4.7/qtnetwork.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7/qtnetwork.html</a> for QtNetwork). FYI, you can see what module it is in by looking at the breadcrumbs at the top of the page (e.g.   Home -&gt; Modules -&gt; <em>QtNetwork</em> -&gt; QHostAddress )</p>
<p dir="auto">Edit: Eddy was faster ;)</p>
]]></description><link>https://forum.qt.io/post/93377</link><guid isPermaLink="true">https://forum.qt.io/post/93377</guid><dc:creator><![CDATA[loladiro]]></dc:creator><pubDate>Tue, 21 Jun 2011 18:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Where to setup QT creator to locate all Qt include files? on Tue, 21 Jun 2011 18:04:10 GMT]]></title><description><![CDATA[<p dir="auto">Qt has several modules for which you can find an overview "here ":<a href="http://doc.qt.nokia.com/4.7/modules.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7/modules.html</a></p>
<p dir="auto">If you click on a module you will see an explanation which also states which option to set in your pro file like the example shown to you.</p>
]]></description><link>https://forum.qt.io/post/93376</link><guid isPermaLink="true">https://forum.qt.io/post/93376</guid><dc:creator><![CDATA[Eddy]]></dc:creator><pubDate>Tue, 21 Jun 2011 18:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to Where to setup QT creator to locate all Qt include files? on Tue, 21 Jun 2011 17:43:33 GMT]]></title><description><![CDATA[<p dir="auto">Where do you find information on what to include inn *;pro file?<br />
Thanks.</p>
]]></description><link>https://forum.qt.io/post/93370</link><guid isPermaLink="true">https://forum.qt.io/post/93370</guid><dc:creator><![CDATA[hpng]]></dc:creator><pubDate>Tue, 21 Jun 2011 17:43:33 GMT</pubDate></item><item><title><![CDATA[Reply to Where to setup QT creator to locate all Qt include files? on Tue, 21 Jun 2011 17:30:03 GMT]]></title><description><![CDATA[<p dir="auto">Did you add network in your pro file? Like..<br />
@<br />
QT       += core gui network<br />
@</p>
<p dir="auto">As for includes, you have two types, you could include globally using the class name like<br />
@<br />
#include &lt;QHostAddress&gt;<br />
@</p>
<p dir="auto">Or a qualified path like<br />
@<br />
#include &lt;QtNetwork/QHostAddress&gt;<br />
@</p>
<p dir="auto">Both of these work, because the Qt include directories contains the global directory as well as the directory below for each module.</p>
<p dir="auto">Is that the issue or is it something else? Maybe, your Qt sources are not structured correctly..</p>
<p dir="auto">@ usr/qt4/QtNetwork @</p>
<p dir="auto">You're on linux i'm guessing and in linux the Qt includes (including the QtNetwork folder) are usually in a "include" folder. Anyway hope that sheds some light on your problem.</p>
<p dir="auto">[ Edit: <a class="plugin-mentions-user plugin-mentions-a" href="/user/loladiro">@<bdi>loladiro</bdi></a>: Same time same place again :) ]</p>
]]></description><link>https://forum.qt.io/post/93366</link><guid isPermaLink="true">https://forum.qt.io/post/93366</guid><dc:creator><![CDATA[jim_kaiser]]></dc:creator><pubDate>Tue, 21 Jun 2011 17:30:03 GMT</pubDate></item><item><title><![CDATA[Reply to Where to setup QT creator to locate all Qt include files? on Tue, 21 Jun 2011 17:28:34 GMT]]></title><description><![CDATA[<p dir="auto">Excuse me but what is the difference between<br />
[quote]<br />
usr/qt4/QtNetwork/QHostAddress<br />
[/quote]<br />
and<br />
[quote]<br />
QHostAddress in this folder:<br />
usr/qt4/QtNetwork<br />
[/quote]<br />
About your problem, do you have<br />
@<br />
QT += network<br />
@<br />
in your .pro file?</p>
]]></description><link>https://forum.qt.io/post/93365</link><guid isPermaLink="true">https://forum.qt.io/post/93365</guid><dc:creator><![CDATA[loladiro]]></dc:creator><pubDate>Tue, 21 Jun 2011 17:28:34 GMT</pubDate></item></channel></rss>