Output message from Qt 6.10.0 when debugging code
-
SetProcessDpiAwarenessContext sets how the application will be notified when the DPI settings are changing. The default for Qt is DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2. I tried to run the widget gallery example with enabled logging rules and get qt.qpa.window: QWindowsContext::setProcessDpiAwareness QtWindows::DpiAwareness::PerMonitorVersion2 as logging line. Could you provide more information about the application and the setup (Windows version, how many screens)?
-
I also use the same setup, but do not get the error. Does this happen with all applications?
-
I develop under Visual Studio for my application normally, and had set the application manifest for High DPI awareness.
It appears that if you do this and then call SetProcessDpiAwarenessContext() it will fail as above. Totally weird!
What's embarrassing is I already reported this here some long while ago and had forgotten!!!
https://forum.qt.io/topic/141236/unexpected-message-in-debug-log
Blush!
David