Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Why QML add prefix assets: to file path
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    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

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxim.prishchepa
      wrote on last edited by
      #2

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

      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved