Record one usage of 'qml signal'

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);
}

你可能感兴趣的:(Record one usage of 'qml signal')