pyside6-qmltyperegistrar is a command line tool that wraps the qmltyperegistrar tool of Qt.

It takes the file produced by pyside6-metaobjectdump as input and generates C++ code to register C++ classes to QML and a .qmltypes file containing a JSON description of the classes. For Qt for Python, only the .qmltypes file is of interest as input for pyside6-qmllint.

The tool is automatically run by the pyside6-project tool when passing the qmllint argument instructing it to check the QML source files.