IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QCameraFlashControl Class

The QCameraFlashControl class allows controlling a camera's flash.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QCameraFlashControl Class

  • Header: QCameraFlashControl

  • qmake: QT += multimedia

  • Inherits: QMediaControl

  • Inherited By:

  • Group: QCameraFlashControl is part of multimedia_control

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

See also QCamera

Member Function Documentation

 

[explicit 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

Returns the current flash mode.

See Also

See also setFlashMode()

void QCameraFlashControl::flashReady(bool ready)

Signal emitted when flash state changes to ready.

[pure virtual] bool QCameraFlashControl::isFlashModeSupported(QCameraExposure::FlashModes mode) const

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

[pure virtual] bool QCameraFlashControl::isFlashReady() const

Returns true if flash is charged.

[pure virtual] void QCameraFlashControl::setFlashMode(QCameraExposure::FlashModes mode)

Set the current flash mode.

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

See Also

See also flashMode()

Macro Documentation

 

QCameraFlashControl_iid

org.qt-project.qt.cameraflashcontrol/5.0

Defines the interface name of the QCameraFlashControl class.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+