<?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[moc&#x27;ing a file in vs2017 from custom directory]]></title><description><![CDATA[<p dir="auto">so i created a new qt gui project in vs2017.<br />
it creates a default <code>MainWindow.h/cpp</code> files, main.cpp.</p>
<p dir="auto">i put the main window files in a new directory (<code>./src/gui</code>) and now the <code>moc_MainWindow.cpp</code> tries to include <code>../../MainWindow.h</code> (since the force include in project settings is set to <code>../../%(Filename)%(Extension)</code>). however, the files isn't there anymore.</p>
<p dir="auto">if i specify the path as <code>../../src/gui/%(Filename)%(Extension)</code> manually, it works. but i don't wanna do this because i have other directories; i don't wanna always "scan" the directories for new qt files.</p>
<p dir="auto">any suggestions?</p>
]]></description><link>https://forum.qt.io/topic/96249/moc-ing-a-file-in-vs2017-from-custom-directory</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 21:11:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/96249.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 03 Nov 2018 16:35:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to moc&#x27;ing a file in vs2017 from custom directory on Sat, 03 Nov 2018 22:45:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">How are you managing the project ? Directly in VS2017 ? Using a .pro file ?</p>
]]></description><link>https://forum.qt.io/post/491042</link><guid isPermaLink="true">https://forum.qt.io/post/491042</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 03 Nov 2018 22:45:50 GMT</pubDate></item></channel></rss>