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

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded