How can I turn on camera flashl开发者_开发问答ight in Symbian, using Qt Mobility?
Checkout QCameraFlashControl
Specifically call setFlashMode with QCameraExposure::FlashTorch.
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);
精彩评论