问题 I am trying to create a new QML type by using Python, but I am having trouble with registering a QML type. However, I am getting an Error: TypeError: 'PySide2.QtQml.qmlRegisterType' called with wrong argument types: PySide2.QtQml.qmlRegisterType(module, str, int, int, str) Supported signatures: PySide2.QtQml.qmlRegisterType(type, str, int, int, str) So I understand that its expecting a type, however, in this blogpost it does something similar: qmlRegisterType(PieChart, 'Charts', 1, 0,