PySide6.QtQml.qmlRegisterType signature error in QtQml.pyi
Solved
Qt for Python
-
qmlRegisterType signature:
PySide6.QtQml.qmlRegisterType(type, bytes, int, int, bytes)
But when I call method :
qmlRegisterType(TestSet, b"Test", 1, 0, b"TestSet")
I get error:
qmlRegisterType(TestSet, b"Test", 1, 0, b"TestSet") ValueError: 'PySide6.QtQml.qmlRegisterType' called with wrong argument values: PySide6.QtQml.qmlRegisterType(<class 'testtool.testset.TestSet'>, b'Test', 1, 0, b'TestSet') Found signature: PySide6.QtQml.qmlRegisterType(type, bytes, int, int, bytes)
-
-