The QCameraViewfinder class provides a camera viewfinder widget. More...
#include <QCameraViewfinder>
Inherits: QVideoWidget.
This class was introduced in Qt Mobility 1.1.
QCameraViewfinder ( QWidget * parent = 0 ) | |
~QCameraViewfinder () |
virtual QMediaObject * | mediaObject () const |
virtual bool | setMediaObject ( QMediaObject * object ) |
The QCameraViewfinder class provides a camera viewfinder widget.
camera = new QCamera; viewfinder = new QCameraViewfinder(); viewfinder->show(); camera->setViewfinder(viewfinder); recorder = new QMediaRecorder(camera); imageCapture = new QCameraImageCapture(camera); camera->setCaptureMode(QCamera::CaptureStillImage); camera->start();
Constructs a new camera viewfinder widget.
The parent is passed to QVideoWidget.
Destroys a camera viewfinder widget.
Reimplemented from QMediaBindableInterface::mediaObject().
This function was introduced in Qt Mobility 1.1.
See also setMediaObject().
Reimplemented from QMediaBindableInterface::setMediaObject().
This function was introduced in Qt Mobility 1.1.
See also mediaObject().