Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QCameraFlashControl Class

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

 #include <QCameraFlashControl>

Inherits: QMediaControl.

Public Functions

~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
  • 31 public functions inherited from QObject

Signals

void flashReady(bool ready)

Protected Functions

QCameraFlashControl(QObject * parent = 0)
  • 9 protected functions inherited from QObject

Macros

QCameraFlashControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject

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

QCameraFlashControl::QCameraFlashControl(QObject * parent = 0) [protected]

Constructs a camera flash control object with parent.

QCameraFlashControl::~QCameraFlashControl()

Destroys the camera control object.

QCameraExposure::FlashModes QCameraFlashControl::flashMode() const [pure virtual]

Returns the current flash mode.

See also setFlashMode().

void QCameraFlashControl::flashReady(bool ready) [signal]

Signal emitted when flash state changes to ready.

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

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

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

Returns true if flash is charged.

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

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 flashMode().

Macro Documentation

QCameraFlashControl_iid

org.qt-project.qt.cameraflashcontrol/5.0

Defines the interface name of the QCameraFlashControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web