-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[更新模块路径和资源设置]:对BatteryQuick模块的路径和资源设置进行了更新,以符合新的Qt模块化规范。
- 修改了`BatteryQuick.pro`文件,将资源前缀从`/qml`更改为`/qt/qml/BatteryQuickResources`,以确保QML模块能够被正确加载。 - 在`CMakeLists.txt`中更新了`qt_add_qml_module`的`URI`参数,从`qml`更改为`BatteryQuickResources`,以匹配模块的新路径。 - 对`main.cc`文件进行了更改,更新了QML文件的加载路径,确保它指向新的资源路径。 - 在`CMakeLists.txt`中指定了Qt的版本为6.5,并设置了新的策略`QTP0001 NEW`,以适应Qt 6.5的新特性。 - 为`BatteryQuick`可执行文件添加了安装规则,确保构建后的文件可以被正确安装到指定目录。
- Loading branch information
Showing
8 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters