Hello, a couple of weeks ago I asked about this component and the documentation looks very simple to use, but I have encountered a couple of problems:
- Where is this component added ? I tryed inside a Page but Im having errors with the page configuration, for example I can’t hide the navigationbar, all these parameter are givin me errors.
- It looks that also have problems with the AppMap component, every time I try to swipe to a Page with that contains the AppMap it get stuck, is there a way no fix this?
Page {
id: root
title: qsTr("iUbo")
//all of these parameters are marked as invalid
navigationBarTranslucency: 1.0
backgroundColor: "#1F4291"
navigationBarHidden: true
backNavigationEnabled: false
SwipeView {
id: swipeView
currentIndex: 1
anchors.fill: parent
Item {
id: firstPage
}
Item {
id: secondPage
}
Item {
id: thirdPage
}
ProfilePage {
id: profilePage
}
//Can't navigate correctly to this page
MapTaskPage {
id: performerMapTaskPage
}
}
=====================. UPDATE ======================
Tryed to add the Swipe on an Item component and that fixes my problem with the page properties, however now I can’t make work the Page that contains the Map, the application crashes and gives errors on the AppMap properties like:
file:iubo/qml/pages/PerformerMapTaskPage.qml:118: QML Connections: Cannot assign to non-existent property “onTaskListFetched”
file:iubo/qml/pages/PerformerMapTaskPage.qml:43: Unable to assign int to QDeclarativeGeoMapType*
If I open this page outside the SwipeNav, it works just fine and I don’t have those warnings
//SwipeNavigator.qml
Item {
id: root
anchors.fill: parent
SwipeView {
id: view
currentIndex: 0
anchors.fill: parent
ProfilePage {
id: profilePage
}
//Can't navigate correctly to this page with AppMap
PerformerMapTaskPage{}
}
PageIndicator {
id: indicator
count: view.count
currentIndex: view.currentIndex
anchors.bottom: view.bottom
anchors.horizontalCenter: parent.horizontalCenter
}
}
//mainpage.qml
Page {
id: root
title: qsTr("iUbo Performer")
navigationBarTranslucency: 1.0
backgroundColor: "#1F4291"
navigationBarHidden: true
backNavigationEnabled: false
SwipeNav{
id:swipeNav
}
}