Harmony QRCode generates QR code to add logo

QRCode does not have the attribute of adding an icon, so it can only be generated through component combination.

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

Guess you like

Origin blog.csdn.net/xiaopihair123/article/details/133272456