QCameraFlashControl Class
The QCameraFlashControl class allows controlling a camera's flash. More...
Header: | #include <QCameraFlashControl> |
qmake: | QT += multimedia |
Inherits: | QMediaControl |
Public Functions
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 |
Signals
void | flashReady(bool) |
Protected Functions
QCameraFlashControl(QObject *parent = nullptr) |
Macros
Detailed Description
The QCameraFlashControl class 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 QCameraFlashControl available.
The interface name of QCameraFlashControl is org.qt-project.qt.cameraflashcontrol/5.0
as defined in QCameraFlashControl_iid.
See also QCamera.
Member Function Documentation
[protected]
QCameraFlashControl::QCameraFlashControl(QObject *parent = nullptr)
Constructs a camera flash control object with parent.
[virtual]
QCameraFlashControl::~QCameraFlashControl()
Destroys the camera control object.
[pure virtual]
QCameraExposure::FlashModes QCameraFlashControl::flashMode() const
See also setFlashMode().
[signal]
void QCameraFlashControl::flashReady(bool)
[pure virtual]
bool QCameraFlashControl::isFlashModeSupported(QCameraExposure::FlashModes mode) const
[pure virtual]
bool QCameraFlashControl::isFlashReady() const
[pure virtual]
void QCameraFlashControl::setFlashMode(QCameraExposure::FlashModes mode)
See also flashMode().
Macro Documentation
QCameraFlashControl_iid
org.qt-project.qt.cameraflashcontrol/5.0
Defines the interface name of the QCameraFlashControl class.