我正在尝试按照此处的说明在 QML 中导入目录:http://qt-project.org/doc/qt-5.0/qtqml/qtqml-syntax-directoryimports.html。我有以下
ubuntu-app
| - extras1
| - extras2
| - myapp
| - app1.qml
| - app2.qml
因此,在 app1.qml 中我写了
import "../extras1"
import "../extras2"
当我用 qmlscene 运行它时,出现以下错误
"../extras1": no such directory