QCameraInfoControl Class

The QCameraInfoControl class provides a camera info media control. 更多...

头: #include <QCameraInfoControl>
qmake: QT += multimedia
Since: Qt 5.3
继承: QMediaControl

该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

该类在 Qt 5.3 引入。

公共函数

virtual ~QCameraInfoControl ()
virtual int cameraOrientation (const QString & deviceName ) const = 0
virtual QCamera::Position cameraPosition (const QString & deviceName ) const = 0

保护函数

QCameraInfoControl (QObject * parent = nullptr)

详细描述

The QCameraInfoControl class provides information about the camera devices available on the system.

The interface name of QCameraInfoControl is org.qt-project.qt.camerainfocontrol/5.3 作为定义在 QCameraInfoControl_iid .

成员函数文档编制

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

Constructs a camera info control with the given parent .

[虚拟] QCameraInfoControl:: ~QCameraInfoControl ()

Destroys a camera info control.

[pure virtual] int QCameraInfoControl:: cameraOrientation (const QString & deviceName ) const

Returns the physical orientation of the sensor for the camera named deviceName .

The value is the orientation angle (clockwise, in steps of 90 degrees) of the camera sensor in relation to the display in its natural orientation.

[pure virtual] QCamera::Position QCameraInfoControl:: cameraPosition (const QString & deviceName ) const

Returns the physical position of the camera named deviceName on the hardware system.