Skip to main content

QR

The QR widget encodes a string you specify into a QR code image and displays it on screen.
Use it to turn a URL, text, or any other value into a scannable code, and place a logo image at the center if you want one.

Definition and role

The QR widget encodes the string in value as a QR code and draws it as a square image. Set the background color and the size, and overlay a logo image at the center.

  • Category: Contents
  • Default background color: #FFFFFF (white) — the QR modules and eyes (the corner squares) are always black
  • Always rendered as a square (the smaller of width and height becomes the side length)

Features

FeatureDescription
QR code generationConverts the string in value into a QR code and renders it. When the value is empty, Lucy Studio is displayed instead.
Center logoSet an image in image to overlay a logo at the center of the code. Adjust its size with logoRatio.
Background colorSet the QR background color with color (white by default). The module and eye colors are always black.
Size (square)Uses the smaller of width and height as the side length, so the code is always square.

How to use

  1. Open the Contents category in the left widget palette.
  2. Drag and drop the QR item onto the canvas.
  3. In the Properties panel on the right, enter the string to encode — a URL, text, and so on — in value.
  4. If you need a center logo, set it in image and adjust its size with logoRatio.
  5. Adjust the background color (color) and the size (Size) as needed.

Properties

PropertyDescriptionDefaultValue / type
valueString to encode as a QR code. Falls back to Lucy Studio when empty.Empty stringString
imageLogo image overlaid at the center of the code (optional)NoneImage
placeholderFallback text shown when the value is empty — not functional in the current version.Not setString
SizeWidget size — width and height. Falls back to the layout area or 200 when not set. The QR code uses the smaller of the two as its side length and stays square (expand to see width and height)Not setNumber (px)
colorQR background color (the module and eye colors are always black)#FFFFFF (white)Color
colorBlendModeColor blend mode — not functional in the current version.Not setBlend mode
fitImage fit mode — not functional in the current version.Not setfill / contain / cover / fitWidth / fitHeight / none / scaleDown
alignmentAlignment — not functional in the current version.centerAlignment
repeatRepeat mode — not functional in the current version.noRepeatrepeat / repeatX / repeatY / noRepeat
centerSliceCenter slice region — not functional in the current version.Not setRectangular region
matchTextDirectionMatch text direction — not functional in the current version.Off (false)True / false
gaplessPlaybackGapless playback — not functional in the current version.Off (false)True / false
isAntiAliasAnti-aliasing — not functional in the current version.Off (false)True / false
filterQualityFilter quality — not functional in the current version.lownone / low / medium / high
semanticLabelSemantic label — not functional in the current version.Not setString
excludeFromSemanticsExclude from semantics — not functional in the current version.Off (false)True / false
logoRatioCenter logo size as a ratio of the side length. Clamped to 00.5.0.28Number (0–0.5)
note

The image-related properties marked "not functional in the current version" in the table above (fit, repeat, alignment, filterQuality, and so on) are registered alongside the rest, but they have no effect on QR rendering.

Notes and tips

warning

When value is empty, the code automatically encodes Lucy Studio. Always enter the value you want.

tip

Adding a center logo automatically raises the error correction level to compensate for the covered area (M without a logo, Q with one). logoRatio is clamped to 00.5 and defaults to 0.28.

Learn more

tip

For the full set of Widget Control items (Property, Method, and Event) that script this widget, visit QR Widget Control.