Closed HIllya51 closed 8 months ago
from PyQt5.QtWidgets import QPushButton class PushButton(QPushButton): pass
class DropDownButtonBase: pass
class btn1(DropDownButtonBase,PushButton): pass print(btn1)
很迷,这样就直接崩溃。py3.12。
换成 pyqt6 试试
解决了。更新pyqt5的版本到最新版就行了。
另外我好像写错了,我前面是PyQt5-Qt5是5.15.2,PyQt5是5.15.7。更新PyQt5到5.15.10就行了。看起来似乎是PyQt5的旧版本(不过也不是很旧)有bug吧。
py3.11和py3.12都用PyQt5==5.15.7,py3.11就没问题,py3.12就有问题。
应该旧版本 pyqt 不支持 py312
What happened?
py3.12在导入时就会崩,py3.11不会
Operation System
windows10
Python Version
3.12.2 64bit
PyQt/PySide Version
PyQt 5.15.2
PyQt/PySide-Fluent-Widgets Version
1.5.0
How to Reproduce?
已经定位到就是在定义这个类后崩溃。 qfluentwidgets\components\widgets\button.py
Minimum code