[SOLVED] Why QML add prefix assets: to file path



  • Hello All!
    Have a problem,
    i have a model, items of this model contain full path to image,
    then i try to visualise this image over qml.
    and qml print warning to log like: assets:/storage/emulated/0/DCIM/Camera/IMG_20140702_134909.jpg
    but in model path contains like: /storage/emulated/0/DCIM/Camera/IMG_20140702_134909.jpg
    without any prefix, why it's happende and how to fix it?

    PS: Qt 5.3.1, target OS: Android 4.4.4



  • looks like it's incorrect outputting;
    I resolve this to add prefix: "file://" at the begin of path.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.