QInferenceConnection Class
The QInferenceConnection class describes a connection from one step's output port to another step's input port. More...
| Header: | #include <QInferenceConnection> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS EdgeAi)target_link_libraries(mytarget PRIVATE Qt6::EdgeAi) |
| qmake: | QT += edgeai |
| Inherits: | QObject |
| Status: | Technical Preview |
Properties
- sourcePort : QString
- targetPort : QString
- targetStep : QInferenceStep*
Public Functions
| QInferenceConnection(QObject *parent = nullptr) | |
| QInferenceConnection(const QString &sourcePort, QInferenceStep *targetStep, const QString &targetPort, QObject *parent = nullptr) | |
| void | setSourcePort(const QString &newSourcePort) |
| void | setTargetPort(const QString &newTargetPort) |
| void | setTargetStep(QInferenceStep *newTargetStep) |
| QString | sourcePort() const |
| QString | targetPort() const |
| QInferenceStep * | targetStep() const |
Signals
| void | sourcePortChanged() |
| void | targetPortChanged() |
| void | targetStepChanged() |
Detailed Description
Add connections to a step with QInferenceStep::addConnection() to define how the steps are wired when building a QInferenceFlow. The sourcePort property names the source step's output port; when empty, it resolves to the first output in QInferenceStep::outputPorts() as the flow is connected. The targetStep and targetPort properties identify the destination step and its input port; when targetPort is empty, the flow selects an input port whose QInferenceDataPort::Type matches the source output.
See also QInferenceStep::connections(), QInferenceFlow, and QInferenceDataPort.
Property Documentation
sourcePort : QString
This property holds the name of the source (output) port.
If empty, QInferenceFlow resolves the connection from the first port in QInferenceStep::outputPorts() when wiring the flow.
Access functions:
| QString | sourcePort() const |
| void | setSourcePort(const QString &newSourcePort) |
Notifier signal:
| void | sourcePortChanged() |
See also targetStep and targetPort.
targetPort : QString
This property holds the name of the input port on the target step.
If empty, QInferenceFlow selects an input port on targetStep whose QInferenceDataPort::Type matches the source output when wiring the flow.
Access functions:
| QString | targetPort() const |
| void | setTargetPort(const QString &newTargetPort) |
Notifier signal:
| void | targetPortChanged() |
See also sourcePort and targetStep.
targetStep : QInferenceStep*
This property holds the destination step for this connection.
Access functions:
| QInferenceStep * | targetStep() const |
| void | setTargetStep(QInferenceStep *newTargetStep) |
Notifier signal:
| void | targetStepChanged() |
See also sourcePort and targetPort.
Member Function Documentation
[explicit] QInferenceConnection::QInferenceConnection(QObject *parent = nullptr)
Constructs an empty QInferenceConnection with the given parent.
QInferenceConnection::QInferenceConnection(const QString &sourcePort, QInferenceStep *targetStep, const QString &targetPort, QObject *parent = nullptr)
Constructs a QInferenceConnection from output port sourcePort on the owning step to targetPort on targetStep. parent is the optional QObject parent.
© 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.