【问题标题】:qt project cannot find plugin - set via importPaths from qmlproject file?qt 项目找不到插件 - 通过 qmlproject 文件中的 importPaths 设置?
【发布时间】:2013-06-18 21:44:04
【问题描述】:

客户从 Qt Creator 2.6.1 提供了一个 QML 项目 v1.1,但它找不到其中一个插件的导入路径:

我设置为:

importPaths: [ "plugins/com/myCustomer/hmiframework"]

这是 .dll 文件的目录,但 qml 文件没有找到库。

我在导入代码上收到此错误:

 import com.myCustomer.hmiframework 1.0

这是错误:

Error while loading project file C:/Users/elswick/Documents/Customers/myCustomer/docs/project/name/project.qmlproject.
file:///C:/Users/elswick/Documents/Customers/myCustomer/project/name/project.qmlproject:20 Property value set multiple times

不知道从这里去哪里。我选择设计时显示的错误是这样的:

QML module not found

Import paths:
C:/Users/elswick/Documents/Customers/myCustomer/docs/project/name/plugins/com/myCustomer/hmiframework

For qmake projects, use the QML_IMPORT_PATH variable to add import paths.
for qmlproject projects, use the importPaths property to add import paths. (2:1)

谢谢。

【问题讨论】:

    标签: qt qt-creator qml


    【解决方案1】:

    我认为您的项目在第 20 行(或附近)存在错误,其中 属性值被设置了多次。这意味着,您必须在 qtcreator 加载模块之前修复此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-05
      • 1970-01-01
      • 1970-01-01
      • 2019-09-29
      相关资源
      最近更新 更多