<?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[How to make objects created in code visible in ui form?]]></title><description><![CDATA[<p dir="auto">Hey,</p>
<p dir="auto">If i have a project A and i want make i new project B, and i copy the code from project A to project B, how do i 'update' the ui form in Qt Design?<br />
Otherwise how would you make ui elements created in code 'pop up' in this form?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.qt.io/topic/98953/how-to-make-objects-created-in-code-visible-in-ui-form</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 18:07:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/98953.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Jan 2019 19:19:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to make objects created in code visible in ui form? on Fri, 25 Jan 2019 20:18:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devinqt">@<bdi>DevinQT</bdi></a> said in <a href="/post/507215">How to make objects created in code visible in ui form?</a>:</p>
<blockquote>
<p dir="auto">Otherwise how would you make ui elements created in code 'pop up' in this form?</p>
</blockquote>
<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> stated, there's no direct way to do it currently.<br />
However, you may want to look at <a href="http://doc.qt.io/qt-5/quiloader.html" target="_blank" rel="noopener noreferrer nofollow ugc">QUiLoader</a> class source code to have some ideas of how they create widgets from a .ui file, so you may end up extending such class into kinda "QUiSaver" that should provide methods like "addWiget()" and "saveToFile()" to achieve your goal</p>
]]></description><link>https://forum.qt.io/post/507222</link><guid isPermaLink="true">https://forum.qt.io/post/507222</guid><dc:creator><![CDATA[Pablo J. Rogina]]></dc:creator><pubDate>Fri, 25 Jan 2019 20:18:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to make objects created in code visible in ui form? on Fri, 25 Jan 2019 19:22:57 GMT]]></title><description><![CDATA[<p dir="auto">The designer can't show ui elements which are created in the code afterwards - how should this work?<br />
You can define custom classes in the designer e.g. with promoting them: <a href="http://doc.qt.io/qt-5/designer-using-custom-widgets.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/designer-using-custom-widgets.html</a></p>
]]></description><link>https://forum.qt.io/post/507216</link><guid isPermaLink="true">https://forum.qt.io/post/507216</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 25 Jan 2019 19:22:57 GMT</pubDate></item></channel></rss>