Qt Creator don't process qmldir file
-
Project setup:
- All .qml files (and qmldir) are placed in a single directory and have a single prefix in the resource system.
- In CMakeLists.txt I added my .qrc file to
qt_add_executableand usedCMAKE_AUTORECC. - I have two versions of one QML module, named WTextField-1.0.qml and WTextField-2.0.qml.
- I have a qmldir file containing these lines:
WTextField 1.0 WTextField-1.0.qml WTextField 2.0 WTextField-2.0.qml- I don't import QML modules into other manually (like
import "Module.qml"). - I use just the
WTextFieldname in other QML modules.
I can provide you with more details if you need.
The problem:
- First of all, Qt Creator can't process this qmldir file properly, and I get M300 critical warnings: "Unknown component".
- I have no syntax highlighting in the qmldir file.
Maybe there is no such feature in Qt Creator, maybe my project configuration is bad somewhere.
But:
- The project has no problems at the build stage.
- The application works with all successfully loaded modules.
P.S.
Just in case, you can check the MWE here:
github.com/Kiria-F/qt-creator-bug-mwe.