Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › Camera image not saved on iOS – Camera imageCapture.capture()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #19161


    The file is not saved in this example on iOS. It works fine on Linux. I think the issue is related to the fact that I am not asked to give permission to write to photos even though the NSPhotoLibraryAddUsageDescription in the info.plist. This is the code and It can be also tested on the Felgo live app.


    import Felgo 3.0
    import QtMultimedia 5.9
            Page {
                title: qsTr("Video")
                // Right-hand side buttons
                rightBarItem: NavigationBarRow {
                    // Capture image button
                    IconButtonBarItem {
                        title:     qsTr("Capture image")
                        icon:      IconType.camera
                        onClicked: camera.imageCapture.capture()
                // Camera
                Camera {
                    id: camera
                        onImageSaved:    console.log(qsTr("Image saved"))
                        onCaptureFailed: console.log(qsTr("Error capturing image: " + errorString))
                // Live video output
                VideoOutput {
                    id: videoOutput
                    anchors.fill: parent
                    source: camera
                    autoOrientation: true
                    fillMode: VideoOutput.PreserveAspectCrop




    Sorry! the previous example works, but the picture is not shown in the “all photos” album, it is stored in another location instead, for example.


    Is there any way to store this picture in the “all photos” albums? I cannot set the capturedImagePath, because it is a read-only property.


    Felgo Team


    there is also a captureToLocation method available for the imageCapture, you can give it a try. You might have to read the location for the photos with the QStandardPaths C++ class.


Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded