TabBar QML Type
Allows the user to switch between different views or subtasks. More...
|Import Statement:||import QtQuick.Controls 2.1|
- position : enumeration
TabBar provides a tab-based navigation model.
As shown above, TabBar is typically populated with a static set of tab buttons that are defined inline as children of the tab bar. It is also possible to add, insert, move, and remove items dynamically at run time. The items can be accessed using itemAt() or contentChildren.
By default, TabBar resizes its buttons to fit the width of the control. The available space is distributed equally to each button. The default resizing behavior can be overridden by setting an explicit width for the buttons.
The following example illustrates how to keep each tab button at their implicit size instead of being resized to fit the tabbar:
If the total width of the buttons exceeds the available width of the tab bar, it automatically becomes flickable.
This property holds the position of the tab bar.
|The tab bar is at the top, as a window or page header.|
|The tab bar is at the bottom, as a window or page footer.|
The default value is style-specific.
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.