// Includes relevant modules used by the QML import QtQuick import QtQuick.Layouts import QtQuick.Controls as Controls import org.kde.kirigami as Kirigami import CustomComponents 1.0 // Provides basic features needed for all kirigami applications Kirigami.ApplicationWindow { // Unique identifier to reference this object id: root width: 400 height: 300 property var devices: Conf.deviceList // Window title // i18nc() makes a string translatable // and provides additional context for the translators title: i18nc("@title:window", "Hello World") globalDrawer: Kirigami.GlobalDrawer { id: drawer isMenu: true actions: devices } // Set the first page that will be loaded when the app opens // This can also be set to an id of a Kirigami.Page pageStack.initialPage: Kirigami.Page { id: main Controls.Label { // Center label horizontally and vertically within parent object anchors.centerIn: parent text: i18n("Hello World!") } Component { id: nameDelegate Text { text: model.display font.pixelSize: 32 } } } }