import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 ApplicationWindow { visible: true minimumWidth: 400 minimumHeight: 400 Rectangle { id: rect x: 100 y: 100 width: 200 height: width color: "red" PinchArea { anchors.fill: parent pinch.target: parent pinch.minimumScale: 0.125 pinch.maximumScale: 1.0 pinch.minimumRotation: -360 pinch.maximumRotation: 360 MouseArea { anchors.fill: parent drag.target: rect } onPinchStarted: (pinch) => { pinch.accepted = false; } } } }