<?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[Open new window on button click]]></title><description><![CDATA[<p dir="auto">It's a really simple maybe stupid question, but i've been looking for this all day without success.</p>
<p dir="auto">I have a main window (main.qml) with a button. When this button is clicked I want to open a new window (window2.qml). I want to do this using the 'onClicked:' component, and found online, to open a window, I can use 'show()', but I have not been successful in combining these two.</p>
<p dir="auto">I'm new to this, would love every answer :)</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.qt.io/topic/122623/open-new-window-on-button-click</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 13:32:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122623.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Jan 2021 15:47:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Open new window on button click on Tue, 12 Jan 2021 17:53:44 GMT]]></title><description><![CDATA[<p dir="auto">Locking this topic since the other one is in the correct sub-forum.</p>
<p dir="auto">Next time please ask a moderator to move it rather than duplicate.</p>
]]></description><link>https://forum.qt.io/post/637520</link><guid isPermaLink="true">https://forum.qt.io/post/637520</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 12 Jan 2021 17:53:44 GMT</pubDate></item><item><title><![CDATA[Reply to Open new window on button click on Tue, 12 Jan 2021 17:07:50 GMT]]></title><description><![CDATA[<p dir="auto">Yes, correct.</p>
<p dir="auto">Any possible way you can answer it?</p>
]]></description><link>https://forum.qt.io/post/637511</link><guid isPermaLink="true">https://forum.qt.io/post/637511</guid><dc:creator><![CDATA[leon missoul]]></dc:creator><pubDate>Tue, 12 Jan 2021 17:07:50 GMT</pubDate></item><item><title><![CDATA[Reply to Open new window on button click on Tue, 12 Jan 2021 16:37:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leon-missoul">@<bdi>leon-missoul</bdi></a><br />
That's no problem.  I see you have now re-posted this there as <a href="https://forum.qt.io/topic/122624/open-new-window-on-button-click">https://forum.qt.io/topic/122624/open-new-window-on-button-click</a>.</p>
]]></description><link>https://forum.qt.io/post/637504</link><guid isPermaLink="true">https://forum.qt.io/post/637504</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 12 Jan 2021 16:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to Open new window on button click on Tue, 12 Jan 2021 16:30:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I was not aware of that.</p>
]]></description><link>https://forum.qt.io/post/637500</link><guid isPermaLink="true">https://forum.qt.io/post/637500</guid><dc:creator><![CDATA[leon missoul]]></dc:creator><pubDate>Tue, 12 Jan 2021 16:30:20 GMT</pubDate></item><item><title><![CDATA[Reply to Open new window on button click on Tue, 12 Jan 2021 15:49:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leon-missoul">@<bdi>leon-missoul</bdi></a><br />
Hi.  This, and your previous topics about QML, should all be posted to the QML sub-forum, <a href="https://forum.qt.io/category/12/qml-and-qt-quick">https://forum.qt.io/category/12/qml-and-qt-quick</a>, for best answers.</p>
]]></description><link>https://forum.qt.io/post/637491</link><guid isPermaLink="true">https://forum.qt.io/post/637491</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 12 Jan 2021 15:49:12 GMT</pubDate></item></channel></rss>