On this page

QInferenceVideoSource Class

The QInferenceVideoSource class provides video frames to the pipeline. More...

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

Properties

Public Functions

QInferenceVideoSource(QMediaCaptureSession *captureSession, QObject *parent = nullptr)
QMediaCaptureSession *captureSession() const
void setCaptureSession(QMediaCaptureSession *newCaptureSession)

Signals

Detailed Description

QInferenceVideoSource uses a QMediaCaptureSession from Qt Multimedia as its input, and emits video data on its output port for downstream steps such as QVisionInference.

See also QInferenceStep, QVisionInference, and QInferenceResultParser.

Property Documentation

captureSession : QMediaCaptureSession*

This property holds the capture session that provides the video frames.

The property holds a QMediaCaptureSession from Qt Multimedia. When set, the step uses the session's video output as its input. The default value is nullptr.

Access functions:

QMediaCaptureSession *captureSession() const
void setCaptureSession(QMediaCaptureSession *newCaptureSession)

Notifier signal:

void captureSessionChanged()

See also QMediaCaptureSession.

Member Function Documentation

[explicit] QInferenceVideoSource::QInferenceVideoSource(QMediaCaptureSession *captureSession, QObject *parent = nullptr)

Constructs a QInferenceVideoSource for the given captureSession. Passes parent to QInferenceStep.

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