from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout
from qfluentwidgets import CalendarPicker
class Window(QWidget):
def __init__(self):
super().__init__()
vbox = QVBoxLayout()
self.setFixedSize(500, 500)
cp = CalendarPicker()
vbox.addWidget(cp)
self.setLayout(vbox)
if __name__ == '__main__':
QApplication.setHighDpiScaleFactorRoundingPolicy(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
app = QApplication([])
w = Window()
w.show()
app.exec()
错误信息
Traceback (most recent call last):
File "I:\SDK\PyQt6\lib\site-packages\qfluentwidgets\components\date_time\calendar_view.py", line 217, in wheelEvent
if self.vScrollBar.ani.state() == QPropertyAnimation.Running:
AttributeError: type object 'QPropertyAnimation' has no attribute 'Running'
Describe the bug CalendarPicker展开后滚动鼠标滚轮报错
Environment 环境信息
To Reproduce
Code 最小复现代码
错误信息
Expected behavior 日历正常滚动
Screenshots