Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 6.0.1
Description
The attached example is based on the Qt Creator QtQuick 6.2 application template, utilitizing the new cmake qml module stuff.
Only a single C++ based Foo type is added.
Out of the box Qt Creator will complain about the "import com.mycompany.foo" "QML module not found". Nevertheless, the application builds and runs correctly.
The comment in https://www.qt.io/blog/qml-modules-in-qt-6.2 by David Hess shows the workaround:
set(QML_IMPORT_PATH ${CMAKE_CURRENT_BINARY_DIR} CACHE STRING "" FORCE)
- Is this actually the intended solution?
- If that is the case, should this become part of the template?
- Where is this documented?
Not actually related to Qt Creator but: Why is the "import com.mycompany.foo" required at all? "main.qml" is part of the same module as "Foo", shouldn't this be visible implicitly?
Attachments
Issue Links
- mentioned in
-
Page Loading...