Details
Description
Here'a small example code that raises a warning when run in the Python interpreter
""" QtWarningMsg: setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x5 (Access is denied.) """ import pyautogui # noqa # pylint:disable=unused-import from PySide6.QtWidgets import QApplication QApplication()
Related analysis can be found in https://github.com/asweigart/pyautogui/issues/663
Why I am reporting this here is to consider if this warning should be silenced (if it is not an issue at all) or whether the warning text should be improved (ACCESS_DENIED is something like "setProcessDpiAwarenessContext has been called before, most likely by another module").
Attachments
Issue Links
- duplicates
-
PYSIDE-2062 [Windows] setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed with 0x5
- Closed
- relates to
-
QTBUG-103733 [Windows] setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed on certain machines
- Closed