A tabbed navigation control. More...

Import Statement: import Felgo 3.0




Detailed Description

This control can be used for a navigation based on tabs. It is based on the Qt Quick TabView and comes with a default TabViewStyle for a platform-specific look.

Children of TabControl should be NavigationItem objects.

To implement a platform dependent navigation, Navigation can be used instead of TabControl.

Note: TabControl uses a lazy-loading mechanism for the contents of each tab. This means, that the tab contents within each NavigationItem element are created when the tab is opened for the first time.

Example Code

To use tabbed control in your application, the following code can be used:

 Page {
   TabControl {
     NavigationItem {
       title: "Tab #1"
       icon: IconType.arrowleft

       FirstPage { }
     NavigationItem {
       title: "Tab #2"
       icon: IconType.arrowright

       SecondPage { }

Property Documentation

[read-only] currentTab : NavigationItem

Accessor for the currently visible NavigationItem.

showIcon : bool

Whether the set NavigationItem::icon should be displayed for the tabs. The default value matches Theme.tabBar.showIcon.

This property was introduced in Felgo 2.7.0.

textFont : font

This property gives full access to all font settings of the title text within the tabs.

This property was introduced in Felgo 2.12.0.

Signal Documentation

tabClicked(NavigationItem = tab, int = index)

Called when a tab has been clicked, and its content page will be displayed.

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