[Qt-creator] QML_ELEMENT crunchiness
jhihn at gmx.com
Fri Apr 23 15:59:44 CEST 2021
I have the QML_ELEMENT a shot today on a class.
CONFIG += qmltypes
QML_IMPORT_NAME = com.company
QML_IMPORT_MAJOR_VERSION = 1
class JsonSerialPort : public QObject
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.
More information about the Qt-creator