QR Code (lv_qrcode)
Generates and displays a QR-code bitmap from a string.
Overview
The QR Code widget generates and displays a QR-code bitmap from a string using LVGL's QR-code library. Its size, colors and the encoded text are configurable.
Learn more in the LVGL Open documentation.
Properties
Parts
Style parts of the widget with local style (e.g. style_bg_color-knob="0xff0000") or with style sheets (e.g. <style name="style_knob" selector="knob">). See Styles to learn more.
| Part | Description |
|---|---|
main | Style the area behind the QR code: background, border and padding. The module colors come from dark_color/light_color, not from style properties. |
Properties below are the widget's XML <api>; see API for how properties, parameters and elements work.
| Property | Type | Description |
|---|---|---|
size | int | Set the QR code size in pixels (instead of width/height) |
dark_color | color | Set the foreground color |
light_color | color | Set the background color |
data | string | Set the encoded UTF-8 data |
quiet_zone | bool | Add margin around the QR code |
Last updated on