mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-19 14:24:28 +00:00
minor changes in README file in the code snippets
This commit is contained in:
parent
4156f88b1b
commit
69d35fb76c
11
README.md
11
README.md
@ -165,8 +165,13 @@ Use the encoding function with its default settings:
|
|||||||
* Error Correction Level: Low (L)
|
* Error Correction Level: Low (L)
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
QString data = "text to be encoded";
|
#include <QZXing.h>
|
||||||
QImage barcode = QZXing::encodeData(data);
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
QString data = "text to be encoded";
|
||||||
|
QImage barcode = QZXing::encodeData(data);
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Or use the encoding function with custom settings:
|
Or use the encoding function with custom settings:
|
||||||
@ -207,6 +212,8 @@ Or use the encoding function with custom settings that are passed like URL query
|
|||||||
|
|
||||||
|
|
||||||
```qml
|
```qml
|
||||||
|
import QZXing 2.3
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: inputField
|
id: inputField
|
||||||
text: "Hello world!"
|
text: "Hello world!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user