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

Torch QML Type

Simple control over torch functionality.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Torch QML Type

  • Import Statement: import QtMultimedia 5.12

  • Group: Torch is part of multimedia_qml

Detailed Description

In many cases the torch hardware is shared with camera flash functionality, and might be automatically controlled by the device. You have control over the power level (of course, higher power levels are brighter but reduce battery life significantly).

 
Sélectionnez
Torch {
    power: 75       // 75% of full power
    enabled: true   // On
}

Property Documentation

 

enabled : bool

This property indicates whether the torch is enabled. If the torch functionality is shared with the camera flash hardware, the camera will take priority over torch settings and the torch is disabled.

power : int

This property holds the current torch power setting, as a percentage of full power.

In some cases this setting may change automatically as a result of temperature or battery conditions.

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