2

How can I turn on camera flashlight in Symbian, using Qt Mobility?

NG_
  • 6,895
  • 7
  • 45
  • 67
user707895
  • 351
  • 1
  • 4
  • 15

2 Answers2

1

Checkout QCameraFlashControl

Specifically call setFlashMode with QCameraExposure::FlashTorch.

Goz
  • 61,365
  • 24
  • 124
  • 204
1

To get the current flash mode use

QCamera* camera = new QCamera; QCameraExposure* cameraExposure = camera.exposure();

FlashModes flashMode = cameraExposure->flashMode();

To set a flash mode (for example always on) use

QCamera* camera = new QCamera; QCameraExposure* cameraExposure = camera.exposure();

cameraExposure->setFlashMode(QCameraExposure::FlashTorch);

alfah
  • 2,077
  • 1
  • 31
  • 55