ArMap.qml
Rectangle{
id: rightRect
ArCanvas {
id: arCanvas
anchors.fill: arVideoRect.videoOutputA;
x: arVideoRect.videoOutputA.regionOut.x;
y: arVideoRect.videoOutputA.regionOut.y;
width: arVideoRect.videoOutputA.regionOut.width;
height: arVideoRect.videoOutputA.regionOut.height;
onSavedShapes: {
//名称一致
console.log(shapeArr,"shapeArr是=====>");
}
}
}
ArCanvas.qml
Canvas {
signal savedShapes(var shapeArr);
}
网友评论