Draws a QR code; error-correction level, cell size, encoding mode and rotation are read from the parameters.
Engine status: Partially rendered
The command is drawn but some of its parameters are ignored; the detail is in the note below.
QRCODE x, y, ecc, cell, mode, rot, "data"SIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
QRCODE 100, 400, M, 6, A, 0, "https://..."
PRINT 1Open this example in the preview →
Output of the example above in our renderer (203 dpi). Not verified on a physical printer.
| Parameter | Meaning |
|---|---|
x, y | Top-left corner of the QR code, in dots |
ecc | Error-correction level L, M, Q or H; other values fall back to M |
cell | Module (cell) size in dots |
mode | Encoding mode letter; accepted but not used by the Labelixa preview |
rot | Rotation in degrees clockwise: 0, 90, 180 or 270 |
"data" | QR content in double quotes |
Leaving the data unquoted: fields are split at commas outside quotes, so an unquoted URL that contains a comma is cut at the first comma. Always quote the data.
ZPL equivalent: ^BQ · Language comparison
SIZE · GAP · REFERENCE · CLS · TEXT · BARCODE · BOX · BAR · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE