I need to know how to turn on camera flash light or torch light using qt ? Is there any way to do this ? I am using qt 5.5. Please give suggestion.
Here is My code
#include "flashon.h"
FlashOn::FlashOn()
{
cam = new QCamera;
camExpos = cam->exposure ();
}
FlashOn::~FlashOn()
{
delete this;
}
void FlashOn::lightOn()
{
camExpos->setFlashMode (QCameraExposure::FlashOn);
qDebug() << " light is on ";
}