QCameraFlashControl Class

The QCameraFlashControl class allows controlling a camera's flash. 更多...

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

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

公共函数

virtual ~QCameraFlashControl ()
virtual QCameraExposure::FlashModes flashMode () const = 0
virtual bool isFlashModeSupported (QCameraExposure::FlashModes mode ) const = 0
virtual bool isFlashReady () const = 0
virtual void setFlashMode (QCameraExposure::FlashModes mode ) = 0

信号

void flashReady (bool ready )

保护函数

QCameraFlashControl (QObject * parent = nullptr)

QCameraFlashControl_iid

详细描述

You can set the type of flash effect used when an image is captured, and test to see if the flash hardware is ready to fire.

You can retrieve this control from the camera object in the usual way:

Some camera devices may not have flash hardware, or may not be configurable. In that case, there will be no QCameraFlashControl available.

The interface name of QCameraFlashControl is org.qt-project.qt.cameraflashcontrol/5.0 作为定义在 QCameraFlashControl_iid .

另请参阅 QCamera .

成员函数文档编制

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

Constructs a camera flash control object with parent .

[signal] void QCameraFlashControl:: flashReady ( bool ready )

Signal emitted when flash state changes to ready .

[虚拟] QCameraFlashControl:: ~QCameraFlashControl ()

Destroys the camera control object.

[pure virtual] QCameraExposure::FlashModes QCameraFlashControl:: flashMode () const

Returns the current flash mode.

另请参阅 setFlashMode ().

[pure virtual] bool QCameraFlashControl:: isFlashModeSupported ( QCameraExposure::FlashModes mode ) const

Return true if the reqested flash mode is supported. Some QCameraExposure::FlashMode values can be combined, for example QCameraExposure::FlashManual | QCameraExposure::FlashSlowSyncRearCurtain

[pure virtual] bool QCameraFlashControl:: isFlashReady () const

Returns true if flash is charged.

[pure virtual] void QCameraFlashControl:: setFlashMode ( QCameraExposure::FlashModes mode )

Set the current flash mode .

Usually a single QCameraExposure::FlashMode flag is used, but some non conflicting flags combination are also allowed, like QCameraExposure::FlashManual | QCameraExposure::FlashSlowSyncRearCurtain .

另请参阅 flashMode ().

宏文档编制

QCameraFlashControl_iid

org.qt-project.qt.cameraflashcontrol/5.0

定义接口名为 QCameraFlashControl 类。