diff options
Diffstat (limited to 'MainTabBarForm.ui.qml')
-rw-r--r-- | MainTabBarForm.ui.qml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/MainTabBarForm.ui.qml b/MainTabBarForm.ui.qml new file mode 100644 index 0000000..f043ba6 --- /dev/null +++ b/MainTabBarForm.ui.qml @@ -0,0 +1,37 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +TabBar { + property alias leftTabButton: leftTabButton + property alias middleTabButton: middleTabButton + property alias rightTabButton: rightTabButton + + id: tabBar + width: 360 + + TabButton { + id: leftTabButton + + Image { + anchors.centerIn: parent + } + } + + TabButton { + id: middleTabButton + x: tabBar.width / 3 + + Image { + anchors.centerIn: parent + } + } + + TabButton { + id: rightTabButton + x: tabBar.width * 2 / 3 + + Image { + anchors.centerIn: parent + } + } +} |