<?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[QtCreator 4.4.1 not showing files from included *.PRI files]]></title><description><![CDATA[<p dir="auto">This issue is a renewed copy of<br />
<a href="https://forum.qt.io/topic/37294/qtcreator-3-0-0-not-showing-files-from-included-pri-files">https://forum.qt.io/topic/37294/qtcreator-3-0-0-not-showing-files-from-included-pri-files</a><br />
But as there was no suitable answer, I+m retrying my luck.</p>
<p dir="auto">Started to use Qt5.9 and tried to compile an old 4.8 project.<br />
In the Project View the included files are not shown for any included *.PRI file.</p>
<p dir="auto">I use a common library folder with several *.PRI files.<br />
Currently, the files have the below structure and compile fine in Qt4.8:</p>
<pre><code>INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
HEADERS += indea_system.h
SOURCES += indea_system.cpp
</code></pre>
<p dir="auto">However, compiling the project in Qt5.9 it reports that in can't find indea_system.* files.<br />
I've tried to remove the DEPENDPATH, as its behvaiour changed in Qt5. Didn't helped.</p>
<p dir="auto">Finally, the *.PRI file modified to show files in QtCreator 4.4 is as below:</p>
<pre><code>INCLUDEPATH += $$PWD
HEADERS += $$PWD/indea_system.h
SOURCES += $$PWD/indea_system.cpp
</code></pre>
<p dir="auto">But I find this wrong.<br />
Why do I have to always attach $$PWD path as I already said where to include files from?<br />
The first (or old) implementation in 4.8 seems much more neat to me.<br />
Specially, if you have several files to include in the *.PRI</p>
<p dir="auto">Can somebody explain me why this has changed?<br />
Do I miss something?<br />
Is there a way to keep the HEADERS/SOURCES list neat as in 4.8?</p>
]]></description><link>https://forum.qt.io/topic/83957/qtcreator-4-4-1-not-showing-files-from-included-pri-files</link><generator>RSS for Node</generator><lastBuildDate>Mon, 28 Sep 2026 07:40:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/83957.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Oct 2017 00:36:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtCreator 4.4.1 not showing files from included *.PRI files on Fri, 27 Oct 2017 10:43:36 GMT]]></title><description><![CDATA[<p dir="auto">Just run into the same problem. In my case the problem was that in the main .pro file I was using</p>
<p dir="auto">...<br />
HEADERS = \<br />
$$PWD/Application.h</p>
<p dir="auto">SOURCES = \<br />
$$PWD/Application.cpp<br />
...</p>
<p dir="auto">This was clearing any previous content of SOURCES and HEADERS and as a conesquence there was no included source file seen in the project tree in qtcreator</p>
<p dir="auto">In my case the solution was to add the '+' before the '=' -&gt; change to<br />
...<br />
HEADERS += \<br />
$$PWD/Application.h</p>
<p dir="auto">SOURCES += \<br />
$$PWD/Application.cpp<br />
...</p>
]]></description><link>https://forum.qt.io/post/422977</link><guid isPermaLink="true">https://forum.qt.io/post/422977</guid><dc:creator><![CDATA[jprodriguez]]></dc:creator><pubDate>Fri, 27 Oct 2017 10:43:36 GMT</pubDate></item></channel></rss>