Qt 6.11 is out! See what's new in the release
blog
QDesktopWidget gone
-
Hi,
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?
Thank you. -
Hi,
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?
Thank you. -
W whatabout has marked this topic as solved on