qmlscene:无法找到自定义包:未安装模块

时间:2016-06-22 14:21:47

标签: qml

我将一堆QML文件打包在一起形成'CommonControls'自定义包。 我使用'CommonControls'中的Items使用“import CommonControls 1.0”语句开发另一个QML文件。

使用'qmlscene'我想运行已开发的QML文件,但它无法找到'CommonControls'包。

使用以下选项解决依赖关系但失败

  1.   

    qmlscene DashboardViewFunctionBar.qml   错误产品:> file:/// C:/Bin/Views/Base/DashboardView.qml:2模块“CommonControls”未安装

  2. 使用'-I'导入选项

      

    qmlscene -I ...... \ Bin \ CommonControls DashboardView.qml   错误产品:> file:/// C:/Bin/Views/Base/DashboardView.qml:2模块“CommonControls”未安装

  3. 使用带有绝对路径的'-I'

      

    qmlscene -I C:\ Bin \ CommonControls DashboardView.qml   错误产品:> file:/// C:/Bin/Views/Base/DashboardView.qml:2模块“CommonControls”未安装

  4. 我在这里缺少什么?

0 个答案:

没有答案