Continuing with this thread only , i am having the same issue, here's my page1.qml:
Code:
import QtQuick 1.1
import com.nokia.meego 1.0
Page {
id:page1
Button{
id:btn
anchors {
horizontalCenter: parent.horizontalCenter
topMargin: 10
}
text: qsTr("Click to go on page2!")
//onClicked:pageStack.push(Qt.resolvedUrl("Sample2.qml")); // this works fine
onClicked: pageLoader.source = "Sample2.qml"
}
Loader {
id: pageLoader
onLoaded: console.log('loaded')
}
}
I have putted logs inside the Component.OnCompleted() of Sample2.qml , which gets created as well as soon as button is clicked but still the page 1 is in view.