QCameraFlashControl

The QCameraFlashControl class allows controlling a camera’s flash. More

Inheritance diagram of PySide2.QtMultimedia.QCameraFlashControl

Detailed Description

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 as defined in QCameraFlashControl_iid .

See also

QCamera

class PySide2.QtMultimedia.QCameraFlashControl([parent=None])
param parent:

PySide2.QtCore.QObject

Constructs a camera flash control object with parent .

PySide2.QtMultimedia.QCameraFlashControl.flashMode()
Return type:

FlashModes

Returns the current flash mode.

See also

setFlashMode()

PySide2.QtMultimedia.QCameraFlashControl.flashReady(arg__1)
Parameters:

arg__1 – bool

PySide2.QtMultimedia.QCameraFlashControl.isFlashModeSupported(mode)
Parameters:

modeFlashModes

Return type:

bool

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

PySide2.QtMultimedia.QCameraFlashControl.isFlashReady()
Return type:

bool

Returns true if flash is charged.

PySide2.QtMultimedia.QCameraFlashControl.setFlashMode(mode)
Parameters:

modeFlashModes

Set the current flash mode .

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

See also

flashMode()