import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Window 2.15 ApplicationWindow { width: 640 height: 480 flags: Qt.FramelessWindowHint | Qt.Window visible: true background: Rectangle { border.color: handler.active ? "green" : "red" border.width: 1 } Item { anchors.fill: parent DragHandler { id: handler onActiveChanged: if (active) startSystemMove() } } }