import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 ApplicationWindow { id: root visible: true width: 640 height: 480 title: qsTr("Hello World") ColumnLayout { anchors.fill: parent Button { Layout.fillWidth: true text: "Scan" onClicked: controller.startScan() } Button { Layout.fillWidth: true text: "Stop Scan" onClicked: controller.stopScan() } } }