Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Bug NavigationStack on iOS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13042

    Per

    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")
        }
    
    }
    

     

    #13051

    Günther
    Felgo Team

    Hi Per!

    On which device did you experience this issue, does it also happen with the ios simulator?

    Best,
    Günther

    #13059

    Per

    Thanks for the fast response! I’m using the latest Qt 5.6 and Vplay 2.8.1 developing on a mac os10.9.5

    The tab example runs fine and shows the titles and rightBarItems for all tabs on ipad ios 7.1.1, ipad 9.3.1, simulator iphone6 ios8.2, moto xphone android 4.4, mac desktop 10.9.5

    But fails on iphone6 ios 8.1.1 since the 2nd (and any additional) tabs don’t show the page title or rightbaritems.

     

    #13073

    Günther
    Felgo Team

    Hi Per!

    Thanks for reporting the issue – I am able to reproduce it on iPhone 6 as well.
    We will work on fixing the problem, until then please use the simulator or other devices to see the expected behavior.

    Best,
    Günther

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded