<?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[Reference generated ui_ header from different subproject]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have a setup in which I have some custom (promoted) widgets. I started with the widgets in the same subproject as where they are used, but to be able to reuse them, I have now moved them to an own subproject.<br />
To be able to set some specific things oir on or connect to widgets on the custom widget, I use a reference similar to:</p>
<pre><code>ui-&gt;customWidget-&gt;ui-&gt;widget
</code></pre>
<p dir="auto">But after the move, the generated ui_customwidget.h is not found anymore when building. Even though in QT Creator it all seems to be fine.<br />
How can I include the generated ui_*.h files into a different subproject? Or is this the wrong way to go, and should I add wrapper methods to the customwidget.h/cpp?</p>
<p dir="auto">TiA!</p>
]]></description><link>https://forum.qt.io/topic/123816/reference-generated-ui_-header-from-different-subproject</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 03:16:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/123816.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Feb 2021 08:55:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reference generated ui_ header from different subproject on Mon, 15 Feb 2021 08:59:27 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the quick reply! I'll add the wrapper methods for the parts that I need.</p>
]]></description><link>https://forum.qt.io/post/644539</link><guid isPermaLink="true">https://forum.qt.io/post/644539</guid><dc:creator><![CDATA[AlexanderB]]></dc:creator><pubDate>Mon, 15 Feb 2021 08:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to Reference generated ui_ header from different subproject on Mon, 15 Feb 2021 08:58:36 GMT]]></title><description><![CDATA[<p dir="auto">It's not directly possible and would somehow contradict the whole class encapsulation - you have to add a setter to the class which uses the ui-file.</p>
]]></description><link>https://forum.qt.io/post/644538</link><guid isPermaLink="true">https://forum.qt.io/post/644538</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 15 Feb 2021 08:58:36 GMT</pubDate></item></channel></rss>