On this page

QInferenceFlow Class

The QInferenceFlow class manages a pipeline of data-processing steps and their connections. More...

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

Public Functions

void start()
QList<QInferenceStep *> steps() const

Signals

void ready()
void started()

Static Public Members

QInferenceFlow *fromSteps(const QList<QInferenceStep *> &steps)

Detailed Description

Use fromSteps() to create a flow with a fixed set of steps. The flow wires the steps using each step's QInferenceConnection list first, and then chains consecutive steps that have no explicit connections by matching the QInferenceDataPort::Type of their output and input ports. When all steps are wired, the flow emits ready(); call start() to run the backend pipeline.

See also QInferenceStep, QInferenceDataPort, and QInferenceConnection.

Member Function Documentation

[static] QInferenceFlow *QInferenceFlow::fromSteps(const QList<QInferenceStep *> &steps)

Creates and returns a flow containing the given steps, in the order they are given. The flow takes ownership of the steps by making itself their parent. Null entries in steps are skipped.

The returned flow has no QObject parent; the caller takes ownership and can reparent it with QObject::setParent().

See also start() and steps().

[signal] void QInferenceFlow::ready()

This signal is emitted when all steps of the flow have been added to the backend and their ports have been connected, so that the pipeline can be started. A flow created from an empty step list is ready immediately.

See also start() and started().

void QInferenceFlow::start()

Starts the backend pipeline and emits started(). This function does nothing when the flow has no backend.

See also started() and ready().

[signal] void QInferenceFlow::started()

This signal is emitted when start() starts the pipeline.

See also start().

QList<QInferenceStep *> QInferenceFlow::steps() const

Returns the list of steps in this flow.

See also fromSteps().

© 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.