在脚本开头使用
qt.qpa.window: SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x5: 拒绝访问。
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)
qt.qpa.window: SetProcessDpiAwareness(2) failed: COM error 0x80070005: 拒绝访问。, using 1
Qt's fallback DPI awareness is PROCESS_DPI_AWARENESS. If you know what you are doing consider an override in qt.conf
PySide6==6.5.0和PyAutoGUI==0.9.53一起用的时候就会警告
用PySide6==6.4.3就可以解除警告