QCameraExposureControl Class
The QCameraExposureControl class allows controlling camera exposure parameters. More...
| Header: | #include <QCameraExposureControl> |
| qmake: | QT += multimedia |
| Inherits: | QMediaControl |
Public Types
| enum | ExposureParameter { ISO, Aperture, ShutterSpeed, ExposureCompensation, ..., ExtendedExposureParameter } |
Public Functions
| virtual | ~QCameraExposureControl() |
- 30 public functions inherited from QObject
Protected Functions
| QCameraExposureControl(QObject *parent = nullptr) |
- 9 protected functions inherited from QObject
Related Non-Members
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QCameraExposureControl_iid | |
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_MEDIA_DECLARE_CONTROL(Class, IId) | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
Detailed Description
The QCameraExposure class is the usual method of adjusting exposure related parameters when using camera functionality. This class provides a more complete but less easy to use interface, and also forms the interface to implement when writing a new implementation of QCamera functionality.
You can adjust a number of parameters that will affect images and video taken with the corresponding QCamera object - see the ExposureParameter enumeration.
The interface name of QCameraExposureControl is org.qt-project.qt.cameraexposurecontrol/5.0 as defined in QCameraExposureControl_iid.
See also QCameraExposure and QCamera.
Member Type Documentation
enum QCameraExposureControl::ExposureParameter
| Constant | Value | Description |
|---|---|---|
QCameraExposureControl::ISO | 0 | Camera ISO sensitivity, specified as integer value. |
QCameraExposureControl::Aperture | 1 | Lens aperture is specified as an qreal F number. The supported apertures list can change depending on the focal length, in such a case the exposureParameterRangeChanged() signal is emitted. |
QCameraExposureControl::ShutterSpeed | 2 | Shutter speed in seconds, specified as qreal. |
QCameraExposureControl::ExposureCompensation | 3 | Exposure compensation, specified as qreal EV value. |
QCameraExposureControl::FlashPower | 4 | Manual flash power, specified as qreal value. Accepted power range is [0..1.0], with 0 value means no flash and 1.0 corresponds to full flash power. |
This value is only used in the manual flash mode.
| Constant | Value | Description |
|---|---|---|
QCameraExposureControl::TorchPower | 6 | Manual torch power, specified as qreal value. Accepted power range is [0..1.0], with 0 value means no light and 1.0 corresponds to full torch power. |
This value is only used in the torch flash mode.
| Constant | Value | Description |
|---|---|---|
QCameraExposureControl::FlashCompensation | 5 | Flash compensation, specified as qreal EV value. |
QCameraExposureControl::SpotMeteringPoint | 7 | The relative frame coordinate of the point to use for exposure metering in spot metering mode, specified as a QPointF. |
QCameraExposureControl::ExposureMode | 8 | Camera exposure mode. |
QCameraExposureControl::MeteringMode | 9 | Camera metering mode. |
QCameraExposureControl::ExtendedExposureParameter | 1000 | The base value for platform specific extended parameters. For such parameters the sequential values starting from ExtendedExposureParameter should be used. |
Member Function Documentation
[protected] QCameraExposureControl::QCameraExposureControl(QObject *parent = nullptr)
Constructs a camera exposure control object with parent.
[virtual] QCameraExposureControl::~QCameraExposureControl()
Destroys the camera exposure control object.
Macro Documentation
QCameraExposureControl::QCameraExposureControl_iid
org.qt-project.qt.cameraexposurecontrol/5.0
Defines the interface name of the QCameraExposureControl class.