<?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[Window scaling on different screens.]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I made the following observation with my Qt application <a href="www.itom.rocks">itom</a> (Qt5.15.2, Windows 10). In the following image you can see two screenshots.</p>
<ul>
<li>In the background, the application was started when a 4k monitor is defined as the main screen (scaling 125%). If I drag the plot window seen to the second monitor (fullHD, scaling 100%) I would expect that the widgets/icons should look slightly smaller.</li>
<li>In the foreground, the application was started when the fullHD monitor is defined as the main screen (scaling 100%).</li>
</ul>
<p dir="auto">Now the question: Is the slight deviation in the size of the window content to be expected (e. g. axis labels)? Is there an explanation for this? I would expect that in both cases the window looks the same, since it is on the fullHD monitor with scaling 100%.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/0f2994b6-9516-4ddd-9747-f53e37942b99.png" alt="aee7f860-e957-4397-8832-ac313cbd471d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In the main function following settings are made in bothe cases:</p>
<pre><code>SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); 
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
</code></pre>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/134079/window-scaling-on-different-screens</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 15:44:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/134079.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Feb 2022 08:25:04 GMT</pubDate><ttl>60</ttl></channel></rss>