工作中遇到需要使用自定义插件在QML中导入在网上找到http://blog.csdn.net/chenlong12580/article/details/8624216文章,其中提到使用addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")))函数或者使用QML2_IMPORT_PATH宏定义来添加导入路径,但是我都尝试了依然提示
“ module "Projects.MyFunctions" is not installed ”下面是我qmldir内容: