PDA

View Full Version : How to load from other qml file?



umnbr
14th February 2016, 19:18
i have subfolder "subqmls", qml files in it



// a.qml -- subqmls/a.qml
import QtQuick 2.0

Text {
id: text1
text: qsTr("Text")
}




//main.qml
import QtQuick 2.3
import QtQuick.Window 2.2
import "subqmls"
Window {
visible: true


Text {
id: text1
}
}

not working

anda_skoa
14th February 2016, 22:39
What is not working? main.qml looks fine to me.
Are you getting any error?

Cheers,
_

umnbr
14th February 2016, 23:18
it worked by capitalized A.qml