Tour Preview

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) › 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.