You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.[Encoded text format Information](#howToEncodingFormatExamples)
35
+
1.[Decoding operation](#howToDecoding)
36
+
1.[C++/Qt](#howToDecodingCPP)
37
+
1.[Qt Quick](#howToDecodingQtQuick)
38
+
1.[Encoding operation](#howToEncoding)
39
+
1.[C++/Qt](#howToEncodingCPP)
40
+
1.[Qt Quick](#howToEncodingQtQuick)
41
+
1.[Encoded text format Information](#howToEncodingFormatExamples)
42
42
1.[Unit test dependency](#unitTestDependency)
43
43
1.[Qt 6 limitations](#qt6limitations)
44
44
1.[Contact](#contact)
@@ -98,18 +98,22 @@ CONFIG += qzxing_qml
98
98
99
99
### QZXing + QZXingFilter
100
100
101
-
QZXing includes QZXingFilter, a QAbstractVideoFilter implementation to provide a mean of providing live feed to the decoding library. It automatically includes QML implementation as well.
102
-
This option requires "multimedia" Qt module this is why it is considered as a separate configuration. It can be used by adding the folloing line to the .pro file of a project:
101
+
QZXing includes QZXingFilter, an implementation to provide live feed to the decoding library. It automatically includes QML implementation as well.
102
+
This option requires "multimedia" Qt module this is why it is considered as a separate configuration. It can be used by adding the following line to the .pro file of a project:
103
103
104
104
```qmake
105
105
CONFIG += qzxing_multimedia
106
106
```
107
107
108
+
For examples on how to use QZXingFilter, it is advised to see [QZXingLive](https://github.com/ftylitak/qzxing/tree/master/examples/QZXingLive) example project. For Qt 5.x versions check [main.qml](https://github.com/ftylitak/qzxing/tree/master/examples/QZXingLive/main.qml) file, whereas for Qt 6.2 (or newer) check [main_qt6_2.qml](https://github.com/ftylitak/qzxing/tree/master/examples/QZXingLive/main_qt6_2.qml).
109
+
110
+
(Pending task: a wiki page should be written to better explain the usage of the QZXingFilter component)
111
+
108
112
<aname="howTo"></a>
109
113
110
114
# How to use
111
115
112
-
Follows simple code snippets that brefly show the use of the library. For more details advise the examples included in the repository and the [wiki](https://github.com/ftylitak/qzxing/wiki).
116
+
Follows simple code snippets that briefly show the use of the library. For more details advise the examples included in the repository and the [wiki](https://github.com/ftylitak/qzxing/wiki).
113
117
114
118
<aname="howToDecoding"></a>
115
119
@@ -159,7 +163,7 @@ int main()
159
163
The in the QML file
160
164
161
165
```qml
162
-
import QZXing 3.2
166
+
import QZXing 3.3
163
167
164
168
function decode(preview) {
165
169
imageToDecode.source = preview
@@ -210,9 +214,9 @@ The encoding function has been written as static as it does not have any depende
210
214
211
215
Use the encoding function with its default settings:
| correctionLevel | L, M, Q, H | the error correction level |
276
+
| format | qrcode | the encode formatter. Currently only QR Code. |
277
+
| transparent | true, false | whether the black pixels are transparent |
278
+
| explicitSize | int | if provided, it will be the size of the Qr rectangle |
275
279
276
280
the size of the image can be adjusted by using the Image.sourceWidth and Image.sourceHeight properties of Image QML element.
277
281
278
282
```qml
279
-
import QZXing 3.2
283
+
import QZXing 3.3
280
284
281
285
TextField {
282
286
id: inputField
@@ -324,13 +328,6 @@ After testing, it seems that QTextCodec, if used through core5compat in Qt 6, it
324
328
To avoid the dependency of an extra module (that also does not work as supposed to), QTextCodec has been replaced by [QStringDecoder](https://doc.qt.io/qt-6/qstringdecoder.html) only when building for Qt 6.
325
329
If QZXing if build for Qt 5, QTextCodec is used as it was.
326
330
327
-
## Multimedia (Video / Camera)
328
-
329
-
Qt Multimedia modules that includes the Camera item for QML and Video related operations for frame manipulation and live decoding are not supported in Qt 6 for the moment.
330
-
To my knowledge, there is no specific replacement for this absent modules and I hope they get re-supported for Qt 6.
331
-
332
-
Thus, if building for Qt 5, everything works fine. If trying to used **qzxing_multimedia** configuration in your **pro** file, the project will fail (example: [QZXingLive](https://github.com/ftylitak/qzxing/tree/master/examples/QZXingLive) project).
0 commit comments