我将一堆QML文件打包在一起形成'CommonControls'自定义包。 我使用'CommonControls'中的Items使用“import CommonControls 1.0”语句开发另一个QML文件。
使用'qmlscene'我想运行已开发的QML文件,但它无法找到'CommonControls'包。
使用以下选项解决依赖关系但失败
qmlscene DashboardViewFunctionBar.qml 错误产品:> file:/// C:/Bin/Views/Base/DashboardView.qml:2模块“CommonControls”未安装
使用'-I'导入选项
qmlscene -I ...... \ Bin \ CommonControls DashboardView.qml 错误产品:> file:/// C:/Bin/Views/Base/DashboardView.qml:2模块“CommonControls”未安装
使用带有绝对路径的'-I'
qmlscene -I C:\ Bin \ CommonControls DashboardView.qml 错误产品:> file:/// C:/Bin/Views/Base/DashboardView.qml:2模块“CommonControls”未安装
我在这里缺少什么?