I have the QML_ELEMENT a shot today on a class. +++ pro.pro CONFIG += qmltypes QML_IMPORT_NAME = com.company QML_IMPORT_MAJOR_VERSION = 1
+++ class.cpp #include <QtQml> class JsonSerialPort : public QObject { Q_OBJECT QML_ELEMENT ... } However this method is interior to my experience using the old qmlRegister() integration. 1. In QML file, the import statement gives: "QML Module not found" in the linter. 2. No contezt sensitive autocompletion is offered. I expected these to be resolved on compile of the project, but they were not. _______________________________________________ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator