QR code
How to add QR code?
If you need to display a QR code, you can quickly implement it using the existing QR code
control. The specific steps are as follows:
- Double click to open the UI file
- Find the
QR code
control in the control set on the right - Left-click the
QR code
control and hold it, then drag it to any position, release the left button, and you can see the control of the automatic QR code. Select the QR code control just generated, and in the property bar on the right side of the editor, you can modify the content of the QR code, and you can see that the QR code image will change simultaneously.
Dynamically update the QR code
In addition to setting the QR code content through the tool, we can also dynamically set the QR code content through the code :
bool loadQRCode(const char *pStr);
Sample code
For the specific use of the QR code control, refer to the QrCodeDemo project in Sample Code.