Hi,
Here is my basic project settings layout
- Main.qml
- mainui FOLDER
- Header.qml
- branch.qml
I can load Header.qml into (top of) Main.qml. In my header there is a text as “Branch”. When user clicks the Branch text the mousearea onclicked supposed to load
branch.qml in to main.qml. In my main.qml I define the loader as shown below.:
In Header.qml Text {} mouseArea
MouseArea {
anchors.fill: parent
onClicked: {
pageLoader.source = "branch.qml"
console.debug("onClicked Loader Fired")
}
}
in Main.qml
Loader {
id: pageLoader
anchors.fill: parent
}