@JKSH
Thanks for answer, QT_QML_OUTPUT_DIRECTORY on top of qt_add_qml_module() really helped and now everything is working fine!
@JKSH said in Correct way to make QML modules Qt 6.5-6.9:
To use MButton, you need import UI.Components and not import UI.Assets
my bad, my eyes were busy with the warnings and I didn't notice :)
@JKSH said in Correct way to make QML modules Qt 6.5-6.9:
QML_IMPORT_PATH is used by Qt Creator's old code model. It is not used by the new QML Language Server (qmlls). Likewise, QT_QML_GENERATE_QMLLS_INI is only used by qmlls and not the old code model.
By default, you'll be using qmlls if:
You're running the latest Qt Creator, AND
You're using Qt 6.8 or newer for your project
So can i use modules with "old" approach if I have Qt 6.5 and 16 creator? What is the difference when using without QMLLS on Qt 6.5? or is it the same, just don't write QT_QML_GENERATE_QMLLS_INI and add QML_IMPORT_PATH?
@JKSH said in Correct way to make QML modules Qt 6.5-6.9:
Note: There is no point linking your executable to Assets, Components, and Pages libraries because your executable does not use any C++ symbols from those libraries
and if I use C++ in this module, as I understand it, I will just need to link these modules, and the behavior will remain the same?