Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.0
-
None
-
f4ea7af46 (dev), 77cca9a36 (6.8)
Description
In qt_add_qml_module, when the URI starts with a numeric string, the file build/app${project_name}_qmltyperegistrations.cpp will generate erroneous variable definitions:
In the project's CMakeLists.txt, the following definitions exist:
The generated build/app${project_name}_qmltyperegistrations.cpp is as follows, and at this point, compilation will fail:
Compilation error message:
Attachments
For Gerrit Dashboard: QTBUG-127092 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
577146,2 | Add the QML module URI sanity check | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
577493,2 | Add the QML module URI sanity check | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |