0
我想製作一個動畫,但在運行時會引發一個錯誤。如何在PyQt5中製作動畫?
self.__animation = QPropertyAnimation(self, "geometry")
並提出這個:/任何人都知道如何解決?
self.__animation = QPropertyAnimation(self, "geometry")
TypeError: arguments did not match any overloaded call:
QPropertyAnimation(parent: QObject = None): too many arguments
QPropertyAnimation(QObject, Union[QByteArray, bytes, bytearray], parent: QObject = None): argument 2 has unexpected type 'str'
嘗試:'自.__動畫= QPropertyAnimation(個體經營,b'geometry')' – eyllanesc