When assigning an image element to an image capted from a Camera, it is not 
sufficient to just assign the `path` to the source of the Image element that is 
to display it:
qrc:/main.qml:100:4: QML Image: Cannot open: 
qrc:/var/mobile/Containers/Data/Application/8BD0A3CA-74AA-4599-BCF5-E1863AEA688F/Documents/img_0010.jpg

As can be seen, it prepends "qrc:" on to it. The fix is to prefix it with 
"file://";

onImageSaved: {
        var url = "file://"+path;
        console.log("onImageCaptured", requestId, path, url);
        image.source = url;
}

But this seems like a bug to me? I am sending this list for discussion. Should 
onImageSave supply a URL? Should the Image assume the source is a file:// and 
not a qrc:?


_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to