<?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[Exact width of an ApplicationWindow]]></title><description><![CDATA[<p dir="auto">I have an application with "Maximized" ApplicationWindow with width and height defined. How can I get the current size of the window?</p>
<p dir="auto">@<br />
ApplicationWindow {<br />
id: mainAppWindow<br />
title: "App Window"<br />
flags: Qt.FramelessWindowHint | Qt.TransparentMode<br />
color: "#ebeef0"<br />
visibility: "Maximized"<br />
width: 800<br />
height: 600</p>
<pre><code>Rectangle {
    anchors.fill: parent
}
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">When I try to access mainAppWindow.height, it always returns 600 irrespective of the window visibility state. Is it an expected behaviour? How to get the current size of the window?</p>
]]></description><link>https://forum.qt.io/topic/35285/exact-width-of-an-applicationwindow</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 01:35:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/35285.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Dec 2013 03:03:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exact width of an ApplicationWindow on Tue, 10 Dec 2013 07:04:07 GMT]]></title><description><![CDATA[<p dir="auto">@setWindowState(Qt::WindowFullScreen);@</p>
]]></description><link>https://forum.qt.io/post/206868</link><guid isPermaLink="true">https://forum.qt.io/post/206868</guid><dc:creator><![CDATA[guru]]></dc:creator><pubDate>Tue, 10 Dec 2013 07:04:07 GMT</pubDate></item><item><title><![CDATA[Reply to Exact width of an ApplicationWindow on Tue, 10 Dec 2013 04:43:37 GMT]]></title><description><![CDATA[<p dir="auto">Try using the dimensions of mainAppWindow.contentItem as a proxy for the window size itself. It's more likely to update.</p>
]]></description><link>https://forum.qt.io/post/206860</link><guid isPermaLink="true">https://forum.qt.io/post/206860</guid><dc:creator><![CDATA[416365416c]]></dc:creator><pubDate>Tue, 10 Dec 2013 04:43:37 GMT</pubDate></item></channel></rss>