Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Nothing in app bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15144

    Nicola

    Hi,

    i added this code in my page:

    Page {
        id: operationsPage
        title: "Operazioni"
        property ListModel operationsListModel: ListModel {}
        property ListModel daysListModel: ListModel {}
        property var days: []
    
        // add a custom NavigationBarItem in the left slot of the NavigationBar
    
        rightBarItem: NavigationBarRow {
            IconButtonBarItem {
              icon: widgetsPage.activated ? IconType.toggleon : IconType.toggleoff
              onClicked: widgetsPage.activated = !widgetsPage.activated
              title: "Toggle"
            } // NavigationBarItem
        }

    but i don’t see the IconButterBarItem. What do i wrong? I’m became crazy for it

    #15145

    Alex
    Felgo Team

    Hi Nicola,

    There seems nothing to be wrong in your code, the sample is working fine here. Can you post a screenshot? Is it also missing when switching to other themes from the menu bar? On which platform are you testing?

    Thanks,

    Alex

    #15146

    Nicola

    Hi,

    i’m testing on iOS 10, in my main page i have this:

     

    NavigationItem {
                title: "Prenotazione"
                icon: IconType.circle
    
                NavigationStack {
                    OperationsPage {
                        
                    }
    
                }
            } // navigation item

    OperationsPage is in previous post.

    The screenshot is https://dl.dropboxusercontent.com/u/19069842/IMG_1402.jpg

     

    #15147

    Nicola

    Resolved, my mistake, sorry. Wrong name page. How i can push a button in the navigation bar? AppButton is not derived from navigation item.

    #15148

    Alex
    Felgo Team

    You can add an IconButtonBarItem if you want an icon button. If you want to display a custom content, like a text, you can create your own instance of type ButtonBarItem and set the contentItem property to your content item (e.g. Text {}) or just add it as a child of the base.

    Cheers,

    Alex

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

RSS feed for this thread

You must be logged in to reply to this topic.