Hi
Based on the examples I wrote the following code:
import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Controls 2.0 as Quick2
import QtQuick.Layouts 1.3
import Felgo 3.0
App {
Navigation {
id: navigation
NavigationItem {
id: homescreen
title: "Home"
icon: IconType.home
NavigationStack {
initialPage: page_1
Component {
id: uirstpage
Page {
id:mainpage
title: "Main Page"
}
}
}
NavigationItem {
title: "First Page"
NavigationStack {
Page {
id: firstpage
title: "1st Page"
StackLayout {
id: stacklayout
width: parent.width
height: parent.height
anchors.bottom: parent.bottom
clip: true
page_1 {}
}
}
}
}
}
}
}
The code only changes the page title, but not loading the actual page.The Showcase demo loads the next page using
AppComponentsPage { }
ExamplePage { }
where AppComponentsPage and ExamplePage are the actual file names. . When I use page_1 {} in my code nothing happens besides getting an error message “Cannot assign to nonexistent property ‘page_1′”. Please tell me what I am doing incorrectly.
Thank you.