QCameraLocksControl 类

The QCameraLocksControl 类是用于控制静止摄像头 (或视频摄像机) 的类的抽象基类。 更多...

头: #include <QCameraLocksControl>
qmake: QT += multimedia
继承: QMediaControl

公共函数

~QCameraLocksControl ()
virtual QCamera::LockStatus lockStatus (QCamera::LockType lock ) const = 0
virtual void searchAndLock (QCamera::LockTypes locks ) = 0
virtual QCamera::LockTypes supportedLocks () const = 0
virtual void unlock (QCamera::LockTypes locks ) = 0

信号

void lockStatusChanged (QCamera::LockType lock , QCamera::LockStatus status , QCamera::LockChangeReason reason )

保护函数

QCameraLocksControl (QObject * parent = Q_NULLPTR)

QCameraLocksControl_iid

额外继承成员

详细描述

The QCameraLocksControl 类是用于控制静止摄像头 (或视频摄像机) 的类的抽象基类。

此服务的提供是通过 QMediaService 对象凭借 QMediaService::control()。它被用于 QCamera .

接口名称对于 QCameraLocksControl is org.qt-project.qt.cameralockscontrol/5.0 作为定义在 QCameraLocksControl_iid .

另请参阅 QMediaService::requestControl () 和 QCamera .

成员函数文档编制

[protected] QCameraLocksControl:: QCameraLocksControl ( QObject * parent = Q_NULLPTR)

构造摄像头锁控制对象采用 parent .

QCameraLocksControl:: ~QCameraLocksControl ()

销毁摄像头锁控制对象。

[pure virtual] QCamera::LockStatus QCameraLocksControl:: lockStatus ( QCamera::LockType lock ) const

返回摄像头 lock 状态。

[signal] void QCameraLocksControl:: lockStatusChanged ( QCamera::LockType lock , QCamera::LockStatus status , QCamera::LockChangeReason reason )

信号 lock status was changed with a specified reason .

[pure virtual] void QCameraLocksControl:: searchAndLock ( QCamera::LockTypes locks )

请求摄像头 locks .

[pure virtual] QCamera::LockTypes QCameraLocksControl:: supportedLocks () const

返回摄像头支持的锁类型。

[pure virtual] void QCameraLocksControl:: unlock ( QCamera::LockTypes locks )

解锁摄像机 locks .

宏文档编制

QCameraLocksControl_iid

org.qt-project.qt.cameralockscontrol/5.0

定义接口名为 QCameraLocksControl 类。