[SOLVED]File path in QML
-
I'm displaying the images using list
@property var imagesListModel: ["file:/original.jpg","file:/11.jpg","file:/test (1).jpg","file:/test (2).jpg","file:/test (3).jpg","file:/test (4).jpg","file:/test (5).jpg"]
@
This works if the the images are in the C: file but i cant display the images if i use the path of these images directly
like in C: which i need to fix as i have to save the image of this path in a QImage object, is there nay way i can ifx these problem? -
Hi,
how do you use the pathname?
You should use slash /, not backslash . "file:///c:/images/original.jpg" -
yeh i use the same slash / its works for D: disk but not C:
-
Can you post both variables - for C: and D:?
-
ITs works now if i use file:/ and then C: s path, Thanks!
-
Please add [SOLVED] to your thread titles of all your solved threads.