DataPortConnection QML Type
Wires an output port of one step to an input port of another. More...
| Import Statement: | import QtEdgeAi |
| Since: | Qt 6.12 |
| Status: | Technical Preview |
Properties
- sourcePort : string
- targetPort : string
- targetStep : InferenceStep
Detailed Description
DataPortConnection describes a single connection from a source step's output port to a target step's input port. Declare connections as children of the source InferenceStep to define how the steps of an InferenceFlow are wired together.
The sourcePort property names the source step's output port, while targetStep and targetPort identify the destination step and its input port. An empty sourcePort selects the first output port of the source step, and an empty targetPort selects an input port on the target whose data type matches the source output.
The type wraps the C++ QInferenceConnection rather than deriving from it, so targetStep takes the QML InferenceStep and is resolved to the C++ step it owns when the flow is built.
See also InferenceStep and InferenceFlow.
Property Documentation
sourcePort : string
This property holds the name of the output port of the step this connection is declared on. An empty string selects the step's first output port.
This property is required.
targetPort : string
This property holds the name of the input port on targetStep. An empty string selects an input port whose data type matches the source output.
The default value is an empty string.
targetStep : InferenceStep
This property holds the step this connection leads to. Assign the InferenceStep itself; the connection resolves it to the underlying C++ step, waiting for it if the target has not completed yet.
This property is required.
© 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.