If you modify the V-play template “Tabbed Application” to add NavigationStacks to the MainPage, and add a title and rightBarItem to the FirstPage and SecondPage. This runs fine on Mac and Android, but on iOS only the FirstPage will show a NavigationBar with title and rightBarItem. The Second, Third, … pages will all be blank.
Looks like an iOS bug since the code works fine on other platforms. Is there a workaround?
MainPage.qml
import Felgo 3.0
import QtQuick 2.0
App {
Navigation {
// Comment to use a navigation drawer instead of tabs on Android
navigationMode: navigationModeTabs
NavigationItem {
title: qsTr("First Page")
icon: IconType.square
NavigationStack {
FirstPage {}
}
}
NavigationItem {
title: qsTr("Second Page")
icon: IconType.circle
NavigationStack {
SecondPage {}
}
}
}
}
FirstPage.qml
import Felgo 3.0
import QtQuick 2.0
Page {
title: qsTr("First")
rightBarItem: NavigationBarRow {
IconButtonBarItem {
icon: IconType.square
iconSize: 40
onClicked: console.log("clicked")
}
}
AppText {
anchors.centerIn: parent
text: qsTr("First Page")
}
}
SecondPage.qml
import Felgo 3.0
import QtQuick 2.0
Page {
title: qsTr("Second")
rightBarItem: NavigationBarRow {
IconButtonBarItem {
icon: IconType.circle
iconSize: 40
onClicked: console.log("clicked")
}
}
AppText {
anchors.centerIn: parent
text: qsTr("Second Page")
}
}