diff options
-rw-r--r-- | MainTabBarForm.ui.qml | 37 | ||||
-rw-r--r-- | kelakon.qrc | 1 |
2 files changed, 38 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 + } + } +} diff --git a/kelakon.qrc b/kelakon.qrc index de92f96..55ba0c8 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -14,5 +14,6 @@ <file>qtquickcontrols2.conf</file> <file>kelakon-logo.png</file> <file>onboarding-1.png</file> + <file>MainTabBarForm.ui.qml</file> </qresource> </RCC> |