ImageCapture QML Type

An interface for capturing camera images. More...

Import Statement: import QtMultimedia

Detailed Description

This type allows you to capture still images and be notified when they are available or saved to disk.

 Item {
     width: 640
     height: 360

     CaptureSession {
         imageCapture : ImageCapture {
             id: imageCapture
         }
     camera: Camera {
         id: camera
     }

     videoOutput: VideoOutput {
         anchors.fill: parent

         MouseArea {
             anchors.fill: parent;
             onClicked: imageCapture.capture();
         }
     }

     Image {
         id: photoPreview
         src: imageCapture.preview // always shows the last captured image
     }
 }