TabControl

A tabbed navigation control More...

Import Statement: import VPlayApps 1.0
Inherits:

TabView

Properties

Signals

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 QML property was introduced in V-Play 2.7.0.


Signal Documentation

tabClicked(NavigationItem tab, int index)

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


Videos

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