import QtQuick 2.15 import QtQuick.Controls 2.15 Drawer { property alias logo: logoImage.source property alias appName: appNameLabel.text property alias model: menuRepeater.model property alias connected: connectionLabel.connected signal actionSelected(var action) width: parent.width * 0.66 height: parent.height Column { anchors.fill: parent Row { width: parent.width height: 100 Image { id: logoImage anchors.top: parent.top anchors.bottom: parent.bottom anchors.margins: 10 } Column { anchors.verticalCenter: parent.verticalCenter Label { id: appNameLabel font.pointSize: 20 } Label { id: connectionLabel property bool connected: false text: connected ? qsTr("Online") : qsTr("Offline") color: connected ? "green" : "red" } } } Repeater { id: menuRepeater delegate: ItemDelegate { width: parent.width text: model.title onClicked: actionSelected(model.action) } } } }