<?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[Changing window size and setting widgets size,placement based on screen size]]></title><description><![CDATA[<p dir="auto">Hai, after a long time,</p>
<p dir="auto">I am using QT 5.0.1 and QT-creator 2.6.2</p>
<p dir="auto">In my application i have small LCD with size of 240X320 and dvi connector to connect Desktop LCD.</p>
<p dir="auto">my question is how to change the window size according to screen size and also how to place the widgets based on screen size</p>
<p dir="auto">to knw the desktop size I have below code<br />
@<br />
QDesktopWidget widget;<br />
QRect mainScreenSize = widget.availableGeometry(widget.primaryScreen());<br />
qDebug()&lt;&lt;mainScreenSize;<br />
w.setGeometry(mainScreenSize);<br />
@<br />
but how can i set the widgets to that size<br />
please any one suggetion</p>
]]></description><link>https://forum.qt.io/topic/39043/changing-window-size-and-setting-widgets-size-placement-based-on-screen-size</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 00:17:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/39043.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Mar 2014 09:55:04 GMT</pubDate><ttl>60</ttl></channel></rss>