Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QML_NAMED_ELEMENT and QML_IMPORT_NAME in VC'2019
How to use QML_NAMED_ELEMENT and QML_IMPORT_NAME in VC'2019 like Qt Creator ?
Thanks but this document does not describe good enough (for VC'2019), use qmlRegisterTypesAndRevisions and qmlRegisterModule...
why is this dependent on the compiler in use?!
Because I couldn't find where is the definition of QML_IMPORT_NAME in VC'2019...
so you are talking about Visual Studio (the IDE) and not the compiler.
The new qml type registration is only available with qmake so far. (https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/qmltyperegistrar/qmltypes.prf)
Qt6 will introduce support for CMAKE too.
I dont know about the Visual Studio Qt plugin.
See the comments in the article
@raven-worx thanks for your time. I am reading now !...