import QtQuick import QtQuick.Controls import QtQuick.Layouts // Item // { // id: topBar // anchors // { // top: parent.top // left: parent.left // right: parent.right // } // height: 30 RowLayout { id: topBar height: 35 width: parent / 4 anchors { top: parent.top left: parent.left right: parent.right } Button { // width: parent.width/7 Layout.preferredWidth: parent.width/5 Text { text: "Dashboard" id: dashBoard } } Button { Layout.preferredWidth: parent.width/5 Text { text: "Kunden" } } Button { Layout.preferredWidth: parent.width/5 Text { text: "Objekt" } } Button { Layout.preferredWidth: parent.width/5 Text { text: "Mitarbeiter" } } Button { Layout.preferredWidth: parent.width/5 Text { text: "Abrechnung" } } }