mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-15 04:16:23 +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)
|
||||
|
||||
```cpp
|
||||
QString data = "text to be encoded";
|
||||
QImage barcode = QZXing::encodeData(data);
|
||||
#include <QZXing.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
QString data = "text to be encoded";
|
||||
QImage barcode = QZXing::encodeData(data);
|
||||
}
|
||||
```
|
||||
|
||||
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
|
||||
import QZXing 2.3
|
||||
|
||||
TextField {
|
||||
id: inputField
|
||||
text: "Hello world!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user