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.

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