如何使用Qt Mobility在Symbian中打开相机手电筒?
发布于 2011-07-04 01:24:42
检出QCameraFlashControl
特别是用QCameraExposure::FlashTorch调用setFlashMode。
发布于 2011-07-13 18:40:18
要获取当前的闪光灯模式,请使用
QCamera* camera = new QCamera;QCameraExposure* cameraExposure = camera.exposure();
FlashModes flashMode = cameraExposure->flashMode();
要设置闪光灯模式(例如,always on),请使用
QCamera* camera = new QCamera;QCameraExposure* cameraExposure = camera.exposure();
cameraExposure->setFlashMode(QCameraExposure::FlashTorch);
https://stackoverflow.com/questions/6564165
复制相似问题