I have a program to preview images that store every image's path (all images are in my computer) in text file. first i open text file and read line by line images paths and store to a list then i source image to the list[i],(for i=0 to numbers of images). it returns to me some error like this:
QML Image: Cannot open: qrc:///D:/QtApp/Gui_qml_app/res/1.png%0D
DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d
this is my text file:
file:/D:/QtApp/Gui_qml_app/res/1.png
file:/D:/QtApp/Gui_qml_app/res/2.png
file:/C:/Users/info/Desktop/wall_images/3.png
and this is my code:
property int i: -1
var request = new XMLHttpRequest()
request.open('GET','in.txt')
request.onreadystatechange = function(event) {
if (request.readyState == XMLHttpRequest.DONE) {
list = request.responseText.split('\n');
}
}
request.send()
item.source =String(list[i+1])
i++;
can every one help me?