Displays a clickable Icon inside a NavigationBar slot. More...

Import Statement: import Felgo 3.0



Detailed Description

This item can be used to display a static Icon inside the left or right NavigationBar slot. It also acts as a button and can be clicked by the user.

Example Usage

To have an icon in the right slot of a NavigationBar, which can toggle some other item, use this code:

 NavigationBar {
   rightBarItem: IconButtonBarItem {
     icon: widgetsPage.activated ? IconType.toggleon : IconType.toggleoff
     onClicked: widgetsPage.activated = !widgetsPage.activated

Property Documentation

color : color

Color of the icon. Default is Theme::navigationBar.itemColor.

icon : IconType

Sets the icon to be shown inside the item. Use one of the IconType constants.

iconSize : real

Size (height) for the icon to be shown, in pixels.

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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support