04-04-2013 04:31 PM
I am returning the path to QML as follows:
const QDir home = QDir::home();
04-05-2013 07:54 AM
I tested on my Z10 running OS 10.1.0.1248 and was able to reference the image in the /data directory using it's absolute path:
So this could be a bug with the particular OS on your device. Could you try hard-coding the path in the imageSource property as a quick test. If this doesn't work, I don't expect it will, please pass me the OS version you are using. I will test in a Dev Alpha C and then verify it's fixed in a later OS.
04-05-2013 08:24 AM
I tested on my Z10 running OS 10.1.0.1248
I would also like to test it, where do i get the OS?
04-05-2013 08:26 AM
This particular OS is internal only right now. More external updates will be coming out in time
04-05-2013 10:08 AM
Dev Alpha C
It seems as though that when I specify the path manually as
it does not work. Same error.
When I specify:
it does work
Setting the path as
Setting the path as
Seems as though my solution should be to prepend the value that my QDir.absoluteFilePath with "file://" for the short term, however will this cause problems going forward?
04-05-2013 10:12 AM
10.1.0.1020 was released a couple weeks ago, could you give it a try to see if it's fixed there?
Prepending with file:// shouldn't cause issues, but image loading "should" work without it and this does appear to be fixed already so should work when the Q10 launches.
04-09-2013 12:12 PM
I ran a few tests on 2 OS builds for the Dev Alpha C and in both cases I could load the OS from the /data directory without issue.
Here's what I did:
1) Deployed a skeleton sample app with the following reference in it:
2) Used the IDE File Explorer to drop in an image file to the app's /data directory
3) Update the imageSource reference to the file I just added
Can you verify this works as expected on your device? It may also be good to check the image files you are downloading to verify the open as expected in your computer's OS.
04-17-2013 11:15 AM
I tried the above and I'm having the same issue.
The only way that I can get these images to show up is to prepend the path with "file://"
04-17-2013 11:35 AM
Now we have to find the delta between our testing. We had the same OS, device and testing steps, could you provide an image file you used to repro the issue?