Using device camera without Qt Mobility
-
The camera API is available at "Qt Mobility 1.2.2 documentation":http://doc.qt.nokia.com/qtmobility/multimedia.html#camera-support. But if you insist on not using it as an alternative you combine "Symbian C++ camera API":http://www.developer.nokia.com/info/sw.nokia.com/id/1cde08b0-1f57-41ba-851b-776c43fdec6c/S60_Platform_Camera_Example_v3_0_en.zip.html with Qt.
-
Did you run qmake after changing the pro file? What error did you get?
-
If you use Qt Mobility 1.2.2 you should use the following approach to "capture a still image":http://doc.qt.nokia.com/qtmobility/multimedia.html#still-images.
@
camera = new QCamera;
viewFinder = new QCameraViewfinder();
viewFinder->show();camera->setViewfinder(viewFinder); imageCapture = new QCameraImageCapture(camera); camera->setCaptureMode(QCamera::CaptureStillImage); camera->start(); //on half pressed shutter button camera->searchAndLock(); ... //on shutter button pressed imageCapture->capture(); //on shutter button released camera->unlock();
@