Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113114

ImageCapture not providing latest preview in Android

XMLWordPrintable

    • Android
    • 2025wk08s1QtforAndroid

      I ported my app to Qt6 and I encountered this issue in Android.

      When an image is captured, the preview property for ImageCapture is locked to one capture behind. 

      Below are the content of preview property when I trigger capture():

      • 1st trigger => empty (Image viewer will show black)
      • 2nd trigger => image://camera/preview_0 (Image viewer will show the previous image)
      • .. and so on
          CaptureSession {
              camera: id_camera
              imageCapture: id_imageCapture
              videoOutput: id_viewFinder
          }    
      
          Camera {
              id: id_camera
              active: true
          }    
      
          ImageCapture {
              id: id_imageCapture        
              onImageCaptured: function (requestId, previewImage) {
                  console.log(preview)
              }        
          }
      
          Image {
              id: id_imagePreview
              source: id_imageCapture.preview
          }
      
          VideoOutput {
              id: id_viewFinder
              MouseArea {
                  anchors.fill: parent
                  onClicked: id_imageCapture.capture()
              }
          }
       

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bartlomiejmoskal Bartlomiej Moskal
            dmendizabal Daniel Mendizabal
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes