Hi @ all,
a simple question: after I create a new project in Qt Quick QML 4.7.xx (Windows & Symbian)
I create two pages:
MAINPAGE.qml
MENU.qml
how can I load MENU.qml or another Page in the same container of MainPage?
I've find this function:
function loadPage(qmlFileString) {
//console.log("Load Page:"+ qmlFileString)
var loadedComponent = Qt.createComponent(qmlFileString);
if (loadedComponent.status == Component.Ready) {
var loadedPage = loadedComponent.createObject(MainPage);
}
function loadPage(qmlFileString) {
//console.log("Load Page:"+ qmlFileString)
var loadedComponent = Qt.createComponent(qmlFileString);
if (loadedComponent.status == Component.Ready) {
var loadedPage = loadedComponent.createObject(MainPage);
}
To copy to clipboard, switch view to plain text mode
but it cant load..
Timer {
interval: 2000; running: true; repeat: false;
onTriggered: { loadPage("Menu.qml");
}
Timer {
interval: 2000; running: true; repeat: false;
onTriggered: { loadPage("Menu.qml");
}
To copy to clipboard, switch view to plain text mode
nothing appear...always the same Main page (and if i view status in console log it can show me component it's not ready)
Any idea how to do it?
Thank in advance,
mrhevor.
Bookmarks