Skip to content

Class QfBarcodeDecoder

ClassList > QfBarcodeDecoder

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
QfBarcodeDecoder (QObject * parent=nullptr)
Q_INVOKABLE void clearDecodedString ()
bool decodeImage (const QImage & image)
Q_INVOKABLE bool decodeImageFile (const QString & path)
QString decodedString () const
void setVideoSink (QVideoSink * sink)
QVideoSink * videoSink () const

Public Properties Documentation

property decodedString [1/2]

QString QfBarcodeDecoder::decodedString;

property videoSink [1/2]

QVideoSink * QfBarcodeDecoder::videoSink;

Public Slots Documentation

slot decodeVideoFrame

void QfBarcodeDecoder::decodeVideoFrame;

Public Signals Documentation

signal decodedStringChanged

void QfBarcodeDecoder::decodedStringChanged;

signal videoSinkChanged

void QfBarcodeDecoder::videoSinkChanged;

Public Functions Documentation

function QfBarcodeDecoder

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

function clearDecodedString

Q_INVOKABLE void QfBarcodeDecoder::clearDecodedString () 

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


function decodeImage

bool QfBarcodeDecoder::decodeImage (
    const QImage & image
) 

Scans a provided image for barcodes and if present sets the decoded string value. Returns TRUE when a barcode was decoded.


function decodeImageFile

Q_INVOKABLE bool QfBarcodeDecoder::decodeImageFile (
    const QString & path
) 

Scans an image found at a given path for barcodes and if present sets the decoded string value. Returns TRUE when a barcode was decoded.


function decodedString [2/2]

inline QString QfBarcodeDecoder::decodedString () const

Returns the last barcode decoded string.


function setVideoSink

void QfBarcodeDecoder::setVideoSink (
    QVideoSink * sink
) 

function videoSink [2/2]

QVideoSink * QfBarcodeDecoder::videoSink () const


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