QCameraControl Class

The QCameraControl class is an abstract base class for classes that control still cameras or video cameras. More...

Header: #include <QCameraControl>
qmake: QT += multimedia
Inherits: QMediaControl

Public Types

enum PropertyChangeType { CaptureMode, ImageEncodingSettings, VideoEncodingSettings, Viewfinder, ViewfinderSettings }

Public Functions

virtual ~QCameraControl()
  • 30 public functions inherited from QObject

Protected Functions

QCameraControl(QObject *parent = nullptr)
  • 9 protected functions inherited from QObject
typedef QObjectList
QList<T> qFindChildren(const QObject *obj, const QRegExp &regExp)
T qobject_cast(QObject *object)
T qobject_cast(const QObject *object)

Macros

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 9 static public members inherited from QObject

Detailed Description

This service is provided by a QMediaService object via QMediaService::control(). It is used by QCamera.

The interface name of QCameraControl is org.qt-project.qt.cameracontrol/5.0 as defined in QCameraControl_iid.

See also QMediaService::requestControl() and QCamera.

Member Type Documentation

enum QCameraControl::PropertyChangeType

ConstantValueDescription
QCameraControl::CaptureMode1Indicates the capture mode is changed.
QCameraControl::ImageEncodingSettings2Image encoder settings are changed, including resolution.
QCameraControl::VideoEncodingSettings3Video encoder settings are changed, including audio, video and container settings.
QCameraControl::Viewfinder4Viewfinder is changed.
QCameraControl::ViewfinderSettings5Viewfinder settings are changed.

Member Function Documentation

[protected] QCameraControl::QCameraControl(QObject *parent = nullptr)

Constructs a camera control object with parent.

[virtual] QCameraControl::~QCameraControl()

Destruct the camera control object.

Macro Documentation

QCameraControl::QCameraControl_iid

org.qt-project.qt.cameracontrol/5.0

Defines the interface name of the QCameraControl class.