QtMobility Reference Documentation

QCameraViewfinder Class Reference

The QCameraViewfinder class provides a camera viewfinder widget. More...

 #include <QCameraViewfinder>

Inherits: QVideoWidget.

This class was introduced in Qt Mobility 1.1.

Public Functions

QCameraViewfinder ( QWidget * parent = 0 )
~QCameraViewfinder ()

Reimplemented Public Functions

virtual QMediaObject * mediaObject () const

Reimplemented Protected Functions

virtual bool setMediaObject ( QMediaObject * object )

Additional Inherited Members

Detailed Description

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();

Member Function Documentation

QCameraViewfinder::QCameraViewfinder ( QWidget * parent = 0 )

Constructs a new camera viewfinder widget.

The parent is passed to QVideoWidget.

QCameraViewfinder::~QCameraViewfinder ()

Destroys a camera viewfinder widget.

QMediaObject * QCameraViewfinder::mediaObject () const [virtual]

Reimplemented from QMediaBindableInterface::mediaObject().

This function was introduced in Qt Mobility 1.1.

See also setMediaObject().

bool QCameraViewfinder::setMediaObject ( QMediaObject * object ) [virtual protected]

Reimplemented from QMediaBindableInterface::setMediaObject().

This function was introduced in Qt Mobility 1.1.

See also mediaObject().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.