QML - Anchor a TabView's tabBar at the bottom of the TabView
Solved
QML and Qt Quick
-
Hi!
Is it possible to anchor the tabBar of a TabView at the bottom of the TabView?
I tried to achieve this by means of the TabViewStyle but I can't figure out how it works.TabView { id: tabView anchors.fill: parent style: TabViewStyle { tabBar: Rectangle { anchors.bottom: control.bottom } } Tab { title: "example" Label { } } }
The following error message is displayed:
QML Rectangle: Cannot anchor to an item that isn't a parent or sibling.Do I miss a simple solution?
-
Hi, see http://doc.qt.io/qt-5/qml-qtquick-controls-tabview.html#tabPosition-prop
TabView { tabPosition: Qt.BottomEdge }