开发者

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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜