Harmony QRCode生成二维码添加logo

QRCode没有添加图标的属性,所以只能通过组件组合生成

Stack(){
    QRCode("哈哈哈").width(200).height(200)
    Image($r("app.media.app_icon")).width(50).height(50)
}

猜你喜欢

转载自blog.csdn.net/xiaopihair123/article/details/133272456