Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyqt 在windows11环境下拖拽功能无法实现的解决办法 #35

Open
ShuibeiC opened this issue Nov 25, 2024 · 0 comments
Open

pyqt 在windows11环境下拖拽功能无法实现的解决办法 #35

ShuibeiC opened this issue Nov 25, 2024 · 0 comments

Comments

@ShuibeiC
Copy link

如标题所说,笔者在今天写代码的时候,遇到了拖拽功能无法实现的情况。
具体表现为:将所选择的文件拖拽到目标窗口时不会触发拖拽事件,鼠标显示禁止图标。

经过排查后发现,是windows策略导致的,解决方法如下:
注册表计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
双击EnableLUA修改为0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant