<?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[Create windows with code]]></title><description><![CDATA[[[topic:post-is-deleted]]]]></description><link>https://forum.qt.io/topic/73238/create-windows-with-code</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 19:31:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/73238.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Nov 2016 06:31:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create windows with code on Fri, 11 Nov 2016 07:16:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-colby">@<bdi>Paul-Colby</bdi></a> I fixed the problem. The problem was cause because I have been creating a Dialog box not in the main thread</p>
]]></description><link>https://forum.qt.io/post/359002</link><guid isPermaLink="true">https://forum.qt.io/post/359002</guid><dc:creator><![CDATA[mandruk1331]]></dc:creator><pubDate>Fri, 11 Nov 2016 07:16:01 GMT</pubDate></item><item><title><![CDATA[Reply to Create windows with code on Fri, 11 Nov 2016 07:07:25 GMT]]></title><description><![CDATA[<p dir="auto">What does the code for you QInputDialog look like?  How do you instantiate it?</p>
]]></description><link>https://forum.qt.io/post/359000</link><guid isPermaLink="true">https://forum.qt.io/post/359000</guid><dc:creator><![CDATA[Paul Colby]]></dc:creator><pubDate>Fri, 11 Nov 2016 07:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to Create windows with code on Fri, 11 Nov 2016 06:54:11 GMT]]></title><description><![CDATA[<p dir="auto">I have created it with QInputDialog, but now I get an error: Widgets must be created in the GUI thread. What can be the problem?</p>
]]></description><link>https://forum.qt.io/post/358999</link><guid isPermaLink="true">https://forum.qt.io/post/358999</guid><dc:creator><![CDATA[mandruk1331]]></dc:creator><pubDate>Fri, 11 Nov 2016 06:54:11 GMT</pubDate></item><item><title><![CDATA[Reply to Create windows with code on Fri, 11 Nov 2016 06:53:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/mandruk1331">@<bdi>mandruk1331</bdi></a>,</p>
<p dir="auto">Perhaps not the simplest example, but pretty close to it:</p>
<ul>
<li><a href="https://github.com/pcolby/generic-qt-app/blob/master/src/main.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pcolby/generic-qt-app/blob/master/src/main.cpp</a></li>
<li><a href="https://github.com/pcolby/generic-qt-app/blob/master/src/widgets/mainwindow.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pcolby/generic-qt-app/blob/master/src/widgets/mainwindow.cpp</a></li>
<li><a href="https://github.com/pcolby/generic-qt-app/blob/master/src/widgets/mainwindow.h" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pcolby/generic-qt-app/blob/master/src/widgets/mainwindow.h</a></li>
</ul>
<p dir="auto">Creates a single main-window application, with a version-string in the Window title, and automatic save/restore of the window position (both of which you can remove).</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://forum.qt.io/post/358998</link><guid isPermaLink="true">https://forum.qt.io/post/358998</guid><dc:creator><![CDATA[Paul Colby]]></dc:creator><pubDate>Fri, 11 Nov 2016 06:53:06 GMT</pubDate></item></channel></rss>