Represent a QrCode entity.
More...
Represent a QrCode entity.
A QrCode entity is considered as immutable, use create() to generate one.
Once QrCode is generated, we can render it (to an image, widget, etc...) via class qbar::RendererQrCode.
- See also
- create()
◆ QrCode()
Create an empty QrCode.
Initialized instance will be invalid.
- See also
- isValid()
◆ getIdLevelEcc()
Retrieve QrCode ECC level.
- Returns
- Returns associated ECC level
◆ getVersion()
| int qbar::QrCode::getVersion |
( |
| ) |
const |
Retrieve QrCode version.
- Returns
- Returns associated version
◆ getRatio()
| QSizeF qbar::QrCode::getRatio |
( |
| ) |
const |
|
overridevirtual |
Retrieve ratio of a barcode.
Allow to manage different format of barcode, to know if they are taller of wider.
- Returns
- Returns associated ratio.
Implements qbar::Barcode.
◆ create()
Allow to generate a QrCode.
Generate a QrCode, version to use will be deduced according to the lenght of data to encode and the choosen ECC level.
- Parameters
-
| [in] | payload | Payload content to use. |
| [in] | idLevel | ECC level to use. |
- Returns
- Returns generated QrCode.
It can be invalid, verify it via isValid() before using it.
- See also
- isValid()
◆ VERSION_MIN
| int qbar::QrCode::VERSION_MIN = 1 |
|
staticconstexpr |
Minimal supported QrCode version (matrix of 21x21)
◆ VERSION_MAX
| int qbar::QrCode::VERSION_MAX = 40 |
|
staticconstexpr |
Maximal supported QrCode version (matrix of 177x177)
The documentation for this class was generated from the following files:
- include/qbarcode/datas/qrcode.h
- src/datas/qrcode.cpp