import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { id: mainWindow visible: true width: 600 height: 500 title: "HelloApp" Text { anchors.horizontalCenter: parent.horizontalCenter y: 0 height: parent.height * 0.1 text: "Hello World" font.pixelSize: 24 } Button { anchors.horizontalCenter: parent.horizontalCenter width: parent.width y: parent.height * 0.9 height: parent.height * 0.1 text: "Close" onClicked: controller_backend.test_function() } }