0

I'm working on an app which includes a camera function, but I can't figure out on how to get the filename from the captured image.

Is there an option in QML on how to get the filename of an image I just captured? If not is there any possibility to get the filename of the image just captured?

Thanks for the help.

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Erwin11313
  • 11
  • 1
  • 5
  • 1
    Just use [`imageSaved`](http://doc.qt.io/qt-5/qml-qtmultimedia-cameracapture.html#imageSaved-signal) signal inside `imageCapture` of `Camera`. Signal parameter `path` contains the physical path you are searching for. – BaCaRoZzo Jul 07 '16 at 13:45

1 Answers1

-1

Yes, There is one way to get the filename with path, i have also tried this. Whenever you captured the image using --> camera.imageCapture.capture() <-- then imageCaptured:{} is called and in imageCaptured{} you can used onImageCaptured:{} and here you can easily get the filename with path. just write a one line of code.

For example:-

Camera {
    id: camera
    imageCapture {
         onImageCaptured: {
         var imgPath = camera.imageCapture.capturedImagePath
         }
    }
}
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
V.Kumar
  • 139
  • 2
  • 5