How can I turn on camera flashlight in Symbian, using Qt Mobility?
Asked
Active
Viewed 1,517 times
2 Answers
1
Checkout QCameraFlashControl
Specifically call setFlashMode with QCameraExposure::FlashTorch.

Goz
- 61,365
- 24
- 124
- 204
-
( my nokia c5 have qt mobility 1.0, so i decide to download flashlight app – user707895 Jul 03 '11 at 18:20
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