做了一个简单的例子,想在手机上实现调试,可是连接手机后启动程序始终提示:无法找到设备,请各位大神赐教,我该如何处理呢
代码如下:
Rectangle{width:parent.width*0.5;height: parent.height*0.5;anchors.right: parent.right;focus: true;Rectangle{id:transformRect;width:parent.width*0.6;height: parent.height*0.6;anchors.centerIn: parent;color:"blue";}PinchArea{anchors.fill: parent;pinch.maximumScale: 20;pinch.minimumScale: 0.2;pinch.minimumRotation: 0;pinch.maximumRotation: 90pinch.target: transformRect;//onPinchStarted: {pinch.accepted=true;}//onPinchUpdated: {transformRect.scale*=pinch.scale;transformRect.rotation+=pinch.rotation;}//onPinchFinished: {transformRect.scale*=pinch.scale;transformRect.rotation+=pinch.rotation;}}