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.