<?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[QSize size = desktopRect.size() * qreal(0.9); what does it mean?]]></title><description><![CDATA[<p dir="auto">Just watching some example <a href="https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-simplebrowser-browserwindow-cpp.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> and kind of stacked on this line of code</p>
<pre><code>QSize size = desktopRect.size() * qreal(0.9);
</code></pre>
<p dir="auto">especially why do we need qreal(0.9) here? I know what qreal does but in this very situation i have no idea about purpose of this chunk of code.</p>
]]></description><link>https://forum.qt.io/topic/72257/qsize-size-desktoprect-size-qreal-0-9-what-does-it-mean</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 18:53:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/72257.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Oct 2016 07:37:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QSize size = desktopRect.size() * qreal(0.9); what does it mean? on Thu, 13 Oct 2016 07:42:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amir-afendin">@<bdi>Amir-Afendin</bdi></a> I think to get <code>90%</code> of  <code>desktopRect</code>'s size so that the widget size gets adjusted as per the desktop screen size?<br />
<code>0.9 = 90/100</code></p>
]]></description><link>https://forum.qt.io/post/353680</link><guid isPermaLink="true">https://forum.qt.io/post/353680</guid><dc:creator><![CDATA[p3c0]]></dc:creator><pubDate>Thu, 13 Oct 2016 07:42:52 GMT</pubDate></item></channel></rss>