Skip to content

help me float error #6

@ginowhis

Description

@ginowhis

C:\Users\umutd\Desktop\pyqt5-custom-widgets-1.0.1\examples>example_requesthandler.py
Traceback (most recent call last):
File "C:\Users\umutd\Desktop\pyqt5-custom-widgets-1.0.1\examples\pyqt5Custom\styledbutton.py", line 276, in paintEvent
else: fc = self.anim_hover.lerp(fc1, fc2)
File "C:\Users\umutd\Desktop\pyqt5-custom-widgets-1.0.1\examples\pyqt5Custom\animation.py", line 102, in lerp
return QColor(r, g, _b, _a)
TypeError: arguments did not match any overloaded call:
QColor(color: Qt.GlobalColor): argument 1 has unexpected type 'float'
QColor(rgb: int): argument 1 has unexpected type 'float'
QColor(rgba64: QRgba64): argument 1 has unexpected type 'float'
QColor(variant: Any): too many arguments
QColor(): too many arguments
QColor(r: int, g: int, b: int, alpha: int = 255): argument 1 has unexpected type 'float'
QColor(aname: str): argument 1 has unexpected type 'float'
QColor(acolor: Union[QColor, Qt.GlobalColor, QGradient]): argument 1 has unexpected type 'float'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions