Forums

OverviewV-Play 2 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 VPlayApps 1.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 VPlayApps 1.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 VPlayApps 1.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
    V-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support