Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.2.4
-
None
-
Windows 10 (prior Creator Update?)
-
-
4a2c31103c (qt/qtbase/dev) 4a2c31103c (qt/tqtc-qtbase/dev) 9e6f83307d (qt/qtbase/6.4) 9e6f83307d (qt/tqtc-qtbase/6.4) 6e6a263528 (qt/qtbase/6.3) 6e6a263528 (qt/tqtc-qtbase/6.3)
Description
There are warnings in users logs.
setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x57 (Unknown error 0x057)
It's not reproduced for me locally, but I suppose it may happen on some legacy Win 10 editions.
0x057 error is ERROR_INVALID_PARAMETER, so it seems as DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 just is not supported on certain user's machines.
According to MSDN, DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 is supported only since Creators Update of Windows 10, and is not available on earlier versions of the operating system. https://docs.microsoft.com/en-us/windows/win32/hidpi/dpi-awareness-context
Attachments
Issue Links
- relates to
-
QTBUG-68712 Use new Windows API for setting high DPI awareness
- Closed
-
PYSIDE-2062 [Windows] setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed with 0x5
- Closed
-
PYSIDE-2105 [Windows] setProcessDpiAwarenessContext failed after importing pyautogui
- Closed