Skip to content

[bug report]:SetProcessDpiAwarenessContext() failed: 拒绝访问 #352

@zxyacg

Description

@zxyacg

我已查看以往的issue并且没有找到类似的问题

  • I have checked the previous issues and there is no simular problems.

描述你遇到的bug以及如何复现

PS D:\pythonprojects\github_pj\KeymouseGo-master> & D:/bc/python/pythonexe/pythonjieshiqi/python3.10.0/python.exe d:/pythonprojects/github_pj/KeymouseGo-master/KeymouseGo.py
2025-07-30 08:48:13.977 | DEBUG | main::76 - ['d:/pythonprojects/github_pj/KeymouseGo-master/KeymouseGo.py']
qt.qpa.window: SetProcessDpiAwarenessContext() failed: 拒绝访问。
Qt's default DPI awareness context is DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2. If you know what you are doing, you can overwrite this default using qt.conf (https://doc.qt.io/qt-6/highdpi.html#configuring-windows).
d:\pythonprojects\github_pj\KeymouseGo-master\KeymouseGo.py:39: DeprecationWarning: Enum value 'Qt::ApplicationAttribute.AA_EnableHighDpiScaling' is marked as deprecated, please check the documentation for more information.
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
2025-07-30 08:48:14.126 | INFO | UIFunc:init:82 - assets root:D:\pythonprojects\github_pj\KeymouseGo-master\assets
2025-07-30 08:48:14.155 | INFO | Plugin.Manager:discover_plugin:55 - Discovered Plugin []
2025-07-30 08:48:14.155 | INFO | Plugin.Manager:register_plugin:68 - Registered functions: dict_keys([])
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1 LGPL version 2.1 or later
2025-07-30 08:48:14.848 | DEBUG | UIFunc:init:270 - Initialize at thread <PySide6.QtCore.QThread(0x1c22d2fe120, name = "Qt mainThread") at 0x000001C230426280>
PS D:\pythonprojects\github_pj\KeymouseGo-master>

截图

No response

你使用的软件版本

最新

你使用的操作系统版本

win11

其它与问题相关的信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions