ResizeArea.qml 342 B

123456789101112131415161718192021222324
  1. import QtQuick 2.15
  2. Item {
  3. id: root
  4. visible: enabled
  5. property var cursor
  6. property var edge
  7. DragHandler {
  8. target: null
  9. onActiveChanged: if (active) _window.startSystemResize(edge);
  10. cursorShape: cursor
  11. dragThreshold: 0
  12. }
  13. MouseArea {
  14. anchors.fill: root
  15. hoverEnabled: true
  16. cursorShape: cursor
  17. }
  18. }