qt项目无法从qmlproject文件中找到通过导入路径设置的插件?
客户从Qt Creator 2.6.1提供了QML项目v1.1,但找不到其中一个插件的导入路径: 我将其设置为:qt项目无法从qmlproject文件中找到通过导入路径设置的插件?,qt,qt-creator,qml,Qt,Qt Creator,Qml,客户从Qt Creator 2.6.1提供了QML项目v1.1,但找不到其中一个插件的导入路径: 我将其设置为: importPaths: [ "plugins/com/myCustomer/hmiframework"] 这是.dll文件的目录,但qml文件找不到libs 我在导入代码中遇到以下错误: import com.myCustomer.hmiframework 1.0 以下是错误: Error while loading project file C:/Users/elswick
importPaths: [ "plugins/com/myCustomer/hmiframework"]
这是.dll文件的目录,但qml文件找不到libs
我在导入代码中遇到以下错误:
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)
谢谢。我认为您的项目在第20行(或前后)出现错误,其中多次设置了属性值。这意味着,在
qtcreator
加载模块之前,您必须修复此错误。我认为您的项目在第20行(或附近)出现错误,其中多次设置了属性值。这意味着您必须在qtcreator
加载模块之前修复此错误