TabView QML Type
A tabbed document interface. More...
| Import Statement: | import FluentUI.Controls 1.0 |
Properties
- addButtonVisibility : bool
- closeButtonVisibility : int
- itemWidth : int
- tabWidthBehavior : int
Signals
- void newPressed()
Detailed Description
TabView provides a tabbed interface for managing multiple documents or panels. It supports configurable tab width behavior, close button visibility, and an add tab button.
Property Documentation
addButtonVisibility : bool
Whether the add new tab button is visible. Defaults to true.
closeButtonVisibility : int
Controls when the close button appears on tabs. Defaults to TabViewType.Always. Other options include TabViewType.OnHover and TabViewType.Never.
itemWidth : int
The fixed width of each tab item in pixels. Defaults to 146.
tabWidthBehavior : int
Controls how tab widths are calculated. Defaults to TabViewType.Equal. Can be set to other values such as TabViewType.SizeToContent for tabs that shrink to fit their content.
Signal Documentation
void newPressed()
Emitted when the add tab button is clicked by the user.
Note: The corresponding handler is onNewPressed.