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

Forums

OverviewFelgo 3 Support (Qt 5) › Custom navigation buttons…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21586

    jrrobles79

    Hello I was looking for how to customize the navigation back button, I read about it on this thread: https://felgo.com/developers/forums/t/apps-custom-back-button-behavior, but is some kind of old, and I couldn’t make it work, the property ‘backButtonEnabled’ is marked as invalid, is there a more recent tutorial or guide of how to do this?

    I tryed to only change the icon color, but the event to go back is lost

      leftBarItem: IconButtonBarItem {
               icon: IconType.chevronleft 
               color: "black"
           }

     

    #21603

    Günther
    Felgo Team

    Hi,

    I think the Thread you posted handles a little different topic. It’s about the hardware back button on Android, which by default pops pages from the active NavigationStack. The thread handles if/how it’s possible to overwrite this behavior.

    For a custom button in the UI that you can add, it is sufficient to add an onClicked handler:

     leftBarItem: IconButtonBarItem {
               icon: IconType.chevronleft 
               color: "black"
               onClicked: page.navigationStack.pop()
           }

     

Viewing 2 posts - 1 through 2 (of 2 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