import QtQuick import QtQuick.Controls ApplicationWindow { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle { id: pos color: "orange" width: 5 height: 5 radius: 5 x: handler.point.position.x y: handler.point.position.y Text { id: posText text: pos.x + " " + pos.y anchors.right: parent.left } } HoverHandler { id: handler } }