开发者

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

开发者 https://www.devze.com 2023-03-17 04:32 出处:网络
How can I turn on camera flashl开发者_开发问答ight in Symbian, using Qt Mobility?Checkout QCameraFlashControl

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

精彩评论

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