Obsolete Members for TabBar
The following members of QML type TabBar are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
- alwaysSelectionMode : bool
- animate : bool
- model : var
- pressed : bool
- selectedIndex : int
- selectionMode : bool
alwaysSelectionMode : bool
Do not deactivate the tab bar after a specified idle time or when the user selects a new tab. Off by default.
animate : bool
Show animations when the state changes. Default: true.
model : var
The model containing the tabs to be controlled by the TabBar. The tabs are visualized by the style, displaying controlling elements based on the data specified by the roles. The default style mandates the existence of either the title or tab role, but different styles may require to have other roles (e.g. image, color). The order the role existence is checked is also determined by the style component, Default style checks the existence of the tab role first, and if not defined will use the title role.
[read-only] pressed : bool
The user is interacting with the tab bar. Depends on the style pressed property.
selectedIndex : int
The property holds the index of the selected Tab item. Note: Setting this property is DEPRECATED. Set the selectedIndex of the model instead.
selectionMode : bool
An inactive tab bar only displays the currently selected tab, and an active tab bar can be interacted with to select a tab.