import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 ToolBar { property string title RowLayout { anchors.fill: parent ToolButton { text: "<" onClicked: stack.pop() visible: stack.depth > 1 } Label { text: title anchors.centerIn: parent } } }