效果:
代码:
qrcode = QRcode_encodeString((const char *)data 3 QR_ECLEVEL_L QR_MODE_8 1);
拿去不谢。
https://github.com/fukuchi/libqrencode
这个是库,你可以移植一下