Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 6.0.1, Qt Creator 6.0.2, Qt Creator 8.0.1, Qt Creator 9.0.1
-
None
-
MacBook Pro (M1, macOS 12.1)
Description
When changes are made in CMakeLists.txt, for example adding or removing class sources from a qt_add_qml_module, the Projects window updates but QML files do not.
Closing and opening the QML file doesn't cause it to re-parse.
Nor does deleting the build folder and rebuilding.
The only way to get the QML file to parse correctly is to quit Qt Creator and start it again.
See attached showing main.qml after Age.h & Age.cpp have been added and Person.h & Person.cpp have been commented out from CMakeLists.txt as follows:
qt_add_qml_module(People URI People VERSION 1.0 SOURCES Age.h Age.cpp # Person.h Person.cpp )
The first image shows the change reflected in Projects pane but not in main.qml despite the above attempts to cause a reparse.
The second image shows the change correctly reflected, following Qt Creator being quit and restarted.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTCREATORBUG-26893 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
458709,3 | CMakeBuildSystem: Add build step generate qmltypes | master | qt-creator/qt-creator | Status: NEW | 0 | 0 |