From 8a9b4521d3e1b68d35ab6221f6317329be7e8122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 2 Feb 2022 12:57:12 +0800 Subject: Main tab form --- MainTabBarForm.ui.qml | 37 +++++++++++++++++++++++++++++++++++++ kelakon.qrc | 1 + 2 files changed, 38 insertions(+) create mode 100644 MainTabBarForm.ui.qml 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 + } + } +} diff --git a/kelakon.qrc b/kelakon.qrc index de92f96..55ba0c8 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -14,5 +14,6 @@ qtquickcontrols2.conf kelakon-logo.png onboarding-1.png + MainTabBarForm.ui.qml -- cgit v1.2.3