<?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 do you add a popup window in QML?]]></title><description><![CDATA[<p dir="auto">How do you create a pop up window in QML, such that a separate window pops up, similar to that of the Qt C++ MainWindow function?</p>
]]></description><link>https://forum.qt.io/topic/100110/how-do-you-add-a-popup-window-in-qml</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 09:28:33 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/100110.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Feb 2019 20:40:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do you add a popup window in QML? on Thu, 28 Feb 2019 07:47:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/edorval">@<bdi>edorval</bdi></a> Hi,<br />
follow below example,</p>
<pre><code>Window {
    id: rootWindow
    visible: true
    width: 600
    height: 800
    property color popupBackGroundColor: "#b44"
    property color popupTextCOlor: "#ffffff"

    
    Popup {
            id: popup
            property alias popMessage: message.text

            background: Rectangle {
                implicitWidth: rootWindow.width
                implicitHeight: 60
                color: popupBackGroundColor
            }
            y: (rootWindow.height - 60)
            modal: true
            focus: true
            closePolicy: Popup.CloseOnPressOutside
            Text {
                id: message
                anchors.centerIn: parent
                font.pointSize: 12
                color: popupTextCOlor
            }
            onOpened: popupClose.start()
        }

        // Popup will be closed automatically in 2 seconds after its opened
        Timer {
            id: popupClose
            interval: 2000
            onTriggered: popup.close()
        }
}
</code></pre>
]]></description><link>https://forum.qt.io/post/514552</link><guid isPermaLink="true">https://forum.qt.io/post/514552</guid><dc:creator><![CDATA[sharath]]></dc:creator><pubDate>Thu, 28 Feb 2019 07:47:02 GMT</pubDate></item><item><title><![CDATA[Reply to How do you add a popup window in QML? on Mon, 25 Feb 2019 21:02:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/edorval">@<bdi>edorval</bdi></a> hi<br />
see <a href="https://doc.qt.io/qt-5/qtquickcontrols2-popups.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt Quick Popup Controls</a></p>
]]></description><link>https://forum.qt.io/post/513939</link><guid isPermaLink="true">https://forum.qt.io/post/513939</guid><dc:creator><![CDATA[ODБOï]]></dc:creator><pubDate>Mon, 25 Feb 2019 21:02:16 GMT</pubDate></item></channel></rss>