QCameraFlashControlclass allows controlling a camera’s flash. 更多 …
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
QCameraFlashControlavailable.The interface name of
QCameraFlashControlisorg.qt-project.qt.cameraflashcontrol/5.0作为定义在QCameraFlashControl_iid.另请参阅
QCameraFlashControl
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a camera flash control object with
parent
.
PySide2.QtMultimedia.QCameraFlashControl.
flashMode
(
)
¶
FlashModes
Returns the current flash mode.
另请参阅
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
.
另请参阅