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

IconButtonBarItem

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

Import Statement: import Felgo 4.0
Inherits:

ButtonBarItem

Properties

Detailed Description

This item can be used to display a static AppIcon 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 {
     iconType: widgetsPage.activated ? IconType.toggleon : IconType.toggleoff
     onClicked: widgetsPage.activated = !widgetsPage.activated
   }
 }

Property Documentation

color : color

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


iconSize : real

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


iconType : IconType

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

Note: This property was renamed from icon in Felgo 4.0.0. This is because many types already inherit a property AbstractButton::icon from Qt Quick Controls 2.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded