PDA

View Full Version : Set zoomTo for QCamera?



tamnv110
29th August 2011, 10:35
Hello guys.
I want to set zoom value for camera of N8 in my project. But i don't know how to set it. And how to set auto focus for camera of N8?
Help me!

mvuori
29th August 2011, 13:54
QCameraFocus has function zoomTo(), which you can use -- if it has been implemented.
(Get a pointer to you camera object's QCameraFocus member with focus = camera->focus() and just set the digital zoom.)

As for auto focus, I didn't know N8 has any other type or at least it should be the default..., in any case, user focus->setFocusMode(QCameraFocus::AutoFocus);

Perhaps your camera doesn't focus if you do not call camera->searchAndLock() to lock focus before capturing the shot.