import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.13 import QtQuick.Layouts 1.12 Window { visible: true width: 1366 height: 768 title: qsTr("Hello World") Rectangle { id:nav height: 150 anchors { top:parent.top right:parent.right left:parent.left } TabBar { id: tabBar height: 79 anchors { top:parent.top right:parent.right left:parent.left } TabButton { text: qsTr("Home") } TabButton { text: qsTr("Discover") } TabButton { text: qsTr("Activity") } } StackLayout { id:stackLayoutNavigation height: 150 anchors { top:tabBar.bottom right:parent.right left:parent.left } currentIndex: tabBar.currentIndex Row { spacing: 40 anchors.margins: 30 Button { text: qsTr("btn 1") } Button { text: qsTr("btn 1") } Button { text: qsTr("btn 1") } Button { text: qsTr("btn 1") } } Row { anchors.margins: 30 spacing: 40 Button { text: qsTr("aaaaaaa1") } } Row { anchors.margins: 30 spacing: 40 Button { text: qsTr("bbbbbbbbbb 1") } Button { text: qsTr("bbbbbbbbbbb 1") } } } } Rectangle { id:stackLayoutContent color: "gray" anchors { top:nav.bottom right:parent.right bottom:parent.bottom left:parent.left } } }