import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 RowLayout { id: header property string title: "" signal back() Layout.fillWidth: true spacing: 8 Button { text: "\u2190 Назад" onClicked: header.back() } Label { Layout.fillWidth: true text: header.title font.bold: true font.pixelSize: 16 color: settingsContainer.darkMode ? "white" : "black" horizontalAlignment: Text.AlignHCenter elide: Text.ElideRight } Item { Layout.preferredWidth: 88 } }