import QtQuick import Sloposk Window { id: root required property LayoutModel layoutModel required property KeyboardController controller property var placement: null // FloatingWindow, set from C++ width: 1000 height: 340 visible: false color: "transparent" Rectangle { anchors.fill: parent radius: Theme.windowRadius color: Theme.background Keyboard { anchors { left: parent.left; right: parent.right; top: parent.top; bottom: handle.top } anchors.margins: 2 model: root.layoutModel controller: root.controller } DragHandle { id: handle anchors { left: parent.left; right: parent.right; bottom: parent.bottom } onMoved: (dx, dy) => root.placement?.moveBy(dx, dy) } } }