On this page

QInferenceBackendDataPort Class

The QInferenceBackendDataPort class is the abstract base class for backend-specific port implementations. More...

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

Properties

Public Functions

QInferenceBackendDataPort(const QString &name, QInferenceDataPort::Type type, QObject *parent = nullptr)
virtual bool connectTo(QInferenceBackendDataPort *other)
QInferenceDataPort::Direction direction() const
bool isConnected() const
QString name() const
void setConnected(bool connected)
void setDirection(QInferenceDataPort::Direction direction)
QInferenceDataPort::Type type() const

Signals

void connectedChanged()
void dataAvailable(const QVariant &data)

Detailed Description

QInferenceBackendStep subclasses create a QInferenceBackendDataPort to represent input and output ports. It forwards data through the dataAvailable() signal when connectTo() links two ports.

See also QInferenceDataPort, QInferenceBackendStep, name(), type(), and connectTo().

Property Documentation

connected : bool

This property holds whether this port is connected to another port.

QInferenceDataPort::connectTo() sets the property on both ports it links.

Access functions:

bool isConnected() const
void setConnected(bool connected)

Notifier signal:

void connectedChanged()

See also connectTo().

Member Function Documentation

[explicit] QInferenceBackendDataPort::QInferenceBackendDataPort(const QString &name, QInferenceDataPort::Type type, QObject *parent = nullptr)

Constructs a QInferenceBackendDataPort with the given name, type, and parent.

[virtual] bool QInferenceBackendDataPort::connectTo(QInferenceBackendDataPort *other)

Connects this port to other by forwarding dataAvailable() from this port to the other. Returns true on success.

See also dataAvailable.

[signal] void QInferenceBackendDataPort::dataAvailable(const QVariant &data)

This signal is emitted when data becomes available on this port.

See also connectTo().

QInferenceDataPort::Direction QInferenceBackendDataPort::direction() const

Returns the direction of this port (In or Out).

See also setDirection().

QString QInferenceBackendDataPort::name() const

Returns the name of this port.

See also type().

void QInferenceBackendDataPort::setDirection(QInferenceDataPort::Direction direction)

Sets the port direction to direction.

See also direction().

QInferenceDataPort::Type QInferenceBackendDataPort::type() const

Returns the data type of this port.

See also name().

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