Torch

Simple control over torch functionality. More...

Import Statement: import QtMultimedia 5.8

Properties

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

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.


Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support