Hi.
I’m using qrc for my qml files. My main.qml is loaded from main.cpp
view.setSource( QUrl( "qrc:/qml/main.qml" ));
I try to import my qml-component in main.qml from qrc too. Disk path to qml-files is “…/qml/main.qml” and “…/qml/Component.qml”. Qrc-prefix is “/”.
That’s how I try to import:
import "Component"
// or
import "Component.qml"
// or
import "qrc:Component"
// or
import "qrc:Component.qml"
// or
import "qrc:/Component"
// or
import "qrc:/Component.qml"
// or
import "qrc:/qml/Component"
// or
import "qrc:/qml/Component.qml"
And nothing works. Need help.
↧