[Primitives widgets]
Object Functions
QrCode object. Creates a 2D barcode object that can be created from a web link or text.
QrCode Properties.
Identifier:
- ID: Unique number that identifies the object.
- Name: User-definable name for the object. It can be used with 86HMI API.
Content:
- LinkSource: Enter a link to a web page or text content that forms a 2D barcode.
Geometry:
- X: Object X coordinate.
- Y: Object Y coordinate.
- Width: Object width.
- Height: Object height.
Options:
- Order: Object order. It can adjust the object order by up/down, which can be viewed on the Object List.
API Functions
setQrCodeLinkSource()
Description
Set QrCode Link Source.
Syntax
void setQrCodeLinkSource(lv_obj_t* id, const char* source);
void setQrCodeLinkSource(char* name, const char* source);
Parameters
[in] id
Object ID.[in] name
Object Name.[in] source
QrCode link source.
Return
None.
Example
#include "myhmi.h" void setup() { Hmi.begin(); // put your setup code here, to run once: Hmi.setQrCodeLinkSource(p1qr1, "https://www.qec.tw/"); } void loop() { // ... }
Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.