<?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[QDesktopWidget gone]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I was recently able to upgrade to Qt6 and I noticed that QDesktopWidget is missing, which I was using to get the screen's DPI. Is there a replacement class? How else can I get the DPI using Qt6? Also how can I use #ifdef do have both Qt5 and Qt6 code?<br />
Thank you.</p>
]]></description><link>https://forum.qt.io/topic/153807/qdesktopwidget-gone</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 16:22:45 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/153807.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Jan 2024 13:43:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QDesktopWidget gone on Sat, 13 Jan 2024 13:47:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/whatabout">@<bdi>whatabout</bdi></a> said in <a href="/post/786357">QDesktopWidget gone</a>:</p>
<blockquote>
<p dir="auto">I was using to get the screen's DPI.</p>
</blockquote>
<p dir="auto">See <a href="https://doc.qt.io/qt-6/qscreen.html" target="_blank" rel="noopener noreferrer nofollow ugc">QScreen</a>.</p>
]]></description><link>https://forum.qt.io/post/786359</link><guid isPermaLink="true">https://forum.qt.io/post/786359</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sat, 13 Jan 2024 13:47:05 GMT</pubDate></item></channel></rss>