qt项目无法从qmlproject文件中通过importPaths找到插件集? | 您所在的位置:网站首页 › qmlproject文件 › qt项目无法从qmlproject文件中通过importPaths找到插件集? |
客户从Qt 2.6.1提供了一个QML项目v1.1,它找不到其中一个插件的导入路径: 我把它设为: 代码语言:javascript复制importPaths: [ "plugins/com/myCustomer/hmiframework"]这是.dll文件的目录,但是qml文件没有找到lib。 我在导入代码上得到了这个错误: 代码语言:javascript复制 import com.myCustomer.hmiframework 1.0以下是错误: 代码语言:javascript复制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不知道从这里往哪里走。选择“设计”时显示的错误如下: 代码语言:javascript复制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)谢谢。 |
CopyRight 2018-2019 实验室设备网 版权所有 |