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.

PartDescription
mainStyle 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.

PropertyTypeDescription
sizeintSet the QR code size in pixels (instead of width/height)
dark_colorcolorSet the foreground color
light_colorcolorSet the background color
datastringSet the encoded UTF-8 data
quiet_zoneboolAdd margin around the QR code

Last updated on

On this page