Skip to content

Class BarcodeDecoder

ClassList > BarcodeDecoder

Inherits the following classes: QObject

Public Slots

Type Name
slot void decodeVideoFrame (const QVideoFrame & frame)

Public Properties

Type Name
property QString decodedString
property QVideoSink * videoSink

Public Signals

Type Name
signal void decodedStringChanged
signal void videoSinkChanged

Public Functions

Type Name
BarcodeDecoder (QObject * parent=nullptr)
Q_INVOKABLE void clearDecodedString ()
void decodeImage (const QImage & image)
QString decodedString () const
void setVideoSink (QVideoSink * sink)
QVideoSink * videoSink () const

Public Properties Documentation

property decodedString [1/2]

QString BarcodeDecoder::decodedString;

property videoSink [1/2]

QVideoSink * BarcodeDecoder::videoSink;

Public Slots Documentation

slot decodeVideoFrame

void BarcodeDecoder::decodeVideoFrame;

Public Signals Documentation

signal decodedStringChanged

void BarcodeDecoder::decodedStringChanged;

signal videoSinkChanged

void BarcodeDecoder::videoSinkChanged;

Public Functions Documentation

function BarcodeDecoder

explicit BarcodeDecoder::BarcodeDecoder (
    QObject * parent=nullptr
) 

function clearDecodedString

Q_INVOKABLE void BarcodeDecoder::clearDecodedString () 

Clears the decoded string value and sets it to an empty string.


function decodeImage

void BarcodeDecoder::decodeImage (
    const QImage & image
) 

Scans a provided image for barcodes and if present sets the decoded string value.


function decodedString [2/2]

inline QString BarcodeDecoder::decodedString () const

Returns the last barcode decoded string.


function setVideoSink

void BarcodeDecoder::setVideoSink (
    QVideoSink * sink
) 

function videoSink [2/2]

QVideoSink * BarcodeDecoder::videoSink () const


The documentation for this class was generated from the following file src/core/barcodedecoder.h