内容表

上一话题

QCameraFeedbackControl

下一话题

QCameraFocus

QCameraFlashControl

QCameraFlashControl class allows controlling a camera’s flash. 更多

Inheritance diagram of PySide2.QtMultimedia.QCameraFlashControl

详细描述

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

class QCameraFlashControl ( [ parent=None ] )
param parent

QObject

Constructs a camera flash control object with parent .

PySide2.QtMultimedia.QCameraFlashControl. flashMode ( )
返回类型

FlashModes

Returns the current flash mode.

另请参阅

setFlashMode()

PySide2.QtMultimedia.QCameraFlashControl. flashReady ( arg__1 )
参数

arg__1 bool

PySide2.QtMultimedia.QCameraFlashControl. isFlashModeSupported ( mode )
参数

mode FlashModes

返回类型

bool

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

PySide2.QtMultimedia.QCameraFlashControl. isFlashReady ( )
返回类型

bool

Returns true if flash is charged.

PySide2.QtMultimedia.QCameraFlashControl. setFlashMode ( mode )
参数

mode FlashModes

Set the current flash mode .

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

另请参阅

flashMode()