On this page

QInferenceBackendFlow Class

The QInferenceBackendFlow class is the abstract base class for backend-specific pipeline flows. More...

Header: #include <QInferenceBackendFlow>
CMake: find_package(Qt6 REQUIRED COMPONENTS EdgeAi)
target_link_libraries(mytarget PRIVATE Qt6::EdgeAi)
qmake: QT += edgeai
Inherits: QObject
Status: Technical Preview

Public Functions

QInferenceBackendFlow(QObject *parent = nullptr)
virtual bool addStep(QInferenceBackendStep *step) = 0
virtual void removeStep(QInferenceBackendStep *step) = 0
virtual void start() = 0
QList<QInferenceBackendStep *> steps() const

Protected Functions

void appendStep(QInferenceBackendStep *step)
void removeStepFromList(QInferenceBackendStep *step)

Detailed Description

QInferenceBackendFactory creates a QInferenceBackendFlow, and QInferenceFlow uses it to add steps, remove steps, and start the pipeline. Implementations, such as the GStreamer backend, are provided by plugins.

See also QInferenceFlow, QInferenceBackendStep, QInferenceBackendFactory, addStep(), removeStep(), and start().

Member Function Documentation

[explicit] QInferenceBackendFlow::QInferenceBackendFlow(QObject *parent = nullptr)

Constructs a QInferenceBackendFlow with the given parent.

[pure virtual] bool QInferenceBackendFlow::addStep(QInferenceBackendStep *step)

Adds step to the backend pipeline. Returns true on success; otherwise returns false.

See also removeStep() and steps().

[protected] void QInferenceBackendFlow::appendStep(QInferenceBackendStep *step)

Appends step to the internal step list. Subclasses call this from their addStep() override after the backend-specific work succeeds.

See also removeStepFromList() and addStep().

[pure virtual] void QInferenceBackendFlow::removeStep(QInferenceBackendStep *step)

Removes step from the backend pipeline.

See also addStep() and steps().

[protected] void QInferenceBackendFlow::removeStepFromList(QInferenceBackendStep *step)

Removes step from the internal step list. Subclasses call this from their removeStep() override after the backend-specific work succeeds.

See also appendStep() and removeStep().

[pure virtual] void QInferenceBackendFlow::start()

Starts the pipeline. For example, the GStreamer backend sets its pipeline to the playing state.

See also addStep().

QList<QInferenceBackendStep *> QInferenceBackendFlow::steps() const

Returns the list of steps currently in the flow.

See also addStep() and removeStep().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.