Closed zqymoe closed 10 months ago
需要最小复现代码和环境信息
目前我复现了该bug,该bug是由多台显示器引起的
环境: 系统: Archlinux (Kde/Wayland) python:3.8及3.11
我分别测试了PyQt5和PySide6,均会复现该问题
运行example/gallery/demo.py 在笔记本连接了多台显示器,会抛出该异常; 不连接外接显示器时,不会抛出该异常
目前我复现了该bug,该bug是由多台显示器引起的
环境: 系统: Archlinux (Kde/Wayland) python:3.8及3.11
我分别测试了PyQt5和PySide6,均会复现该问题
运行example/gallery/demo.py 在笔记本连接了多台显示器,会抛出该异常; 不连接外接显示器时,不会抛出该异常
为又试了下,似乎仅在 DE 为Wayland
下会出现该问题, 在 X11
下不会报该错误
QApplication.screenAt(QCursor.pos())
改成 QApplication.screenAt(self.menu.window().pos())
可能更为合适
现在应该不会报错了
Description 鼠标放在任务栏,程序启动时,QApplication.screenAt()会出现返回None的情况,引发RoundMenu类报错。
Trackback