The following QML results in error "qrc:/msg/main.qml:23:13: Unable to assign [undefined] to QString" if added with qt_add_qml_module:
If the qml file above is added manually via qrc (qt_add_executable) and loaded the problem does not occur. Can be tested with "-w" command line arg in the test project.
Steps to reproduce the problem:
- run the attached project => error occurs
- run the attached project with "-w" => no error
The same problem cannot be reproduced with Qt 6.2.3 at all.