Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.8.1
-
None
Description
minimal reproduction project: https://git.qt.io/mikio_hirai/uiqml_with_qmltc#
<How to reproduce>
1. Clone the repo above. The commit is a618a0fd4650e7e1e2cd5c2b092e616dd1fbd9d7.
2. Configure and build the app with Desktop Qt 6.8.1 MinGW 64-bit
<Expected outcome>
Compilation suceeds
<Actual outcome>
Compilation fails with the error:
14:10:34: プロジェクト UIQML_QMLTC のステップを実行中... 14:10:34: 起動中: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug --target all [1/23 3.1/sec] Automatic MOC and UIC for target appUIQML_QMLTC [2/23 5.0/sec] Running AUTOMOC file extraction for target appUIQML_QMLTC [3/19 5.9/sec] Compiling MyButton.ui.qml with qmltc FAILED: .qmltc/appUIQML_QMLTC/mybutton.ui.h .qmltc/appUIQML_QMLTC/mybutton.ui.cpp C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qmltc/appUIQML_QMLTC/mybutton.ui.h C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qmltc/appUIQML_QMLTC/mybutton.ui.cpp C:\WINDOWS\system32\cmd.exe /C "cd /D C:\Users\81808\Downloads\UIQML_QMLTC\build\Desktop_Qt_6_8_1_MinGW_64_bit-Debug && C:\Qt\Tools\CMake_64\bin\cmake.exe -E make_directory C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qmltc/appUIQML_QMLTC && C:\Users\81808\Downloads\UIQML_QMLTC\build\Desktop_Qt_6_8_1_MinGW_64_bit-Debug\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.8.1/mingw_64/bin/qmltc.exe --bare --header C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qmltc/appUIQML_QMLTC/mybutton.ui.h --impl C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qmltc/appUIQML_QMLTC/mybutton.ui.cpp --namespace UIQML_QMLTC --module UIQML_QMLTC -i C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/UIQML_QMLTC/qmldir -I C:/Qt/6.8.1/mingw_64/qml --resource C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qt/rcc/qmake_UIQML_QMLTC.qrc --resource C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/.qt/rcc/appUIQML_QMLTC_raw_qml_0.qrc --meta-resource C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/UIQML_QMLTC/appUIQML_QMLTC_qml_module_dir_map.qrc --resource C:/Users/81808/Downloads/UIQML_QMLTC/build/Desktop_Qt_6_8_1_MinGW_64_bit-Debug/UIQML_QMLTC/.qmltc/appUIQML_QMLTC/appUIQML_QMLTC_qmltc_file_map.qrc C:/Users/81808/Downloads/UIQML_QMLTC/MyButton.ui.qml" The given QML filename is unsuited for type compilation: the name must consist of letters, digits and underscores, starting with a letter or an underscore and ending in '.qml'! [4/19 6.8/sec] Compiling Main.qml with qmltc ninja: build stopped: subcommand failed. 14:10:34: プロセス "C:\Qt\Tools\CMake_64\bin\cmake.exe" はコード 1 で終了しました。 14:10:34: プロジェクト UIQML_QMLTC のビルド・デプロイ中にエラーが発生しました (キット Desktop Qt 6.8.1 MinGW 64-bit) 14:10:34: ステップ "ビルド" 実行中 14:10:34: 経過時間: 00:01.
<Comment>
This is quite critical as QDS has .ui.qml files by default. This forces users to change the file names manually to get qmltc work. qmltc should accept .ui.qml file extention too.