Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71447

Audio item fails to load file by relative path on Ubuntu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.11.2
    • None
    • Ubuntu 18.04.1
    • Linux/X11

      If qml source loaded from local file (not from resource) and contains Audio item

      Audio { source: "sounds/my.mp3" }

      then the 'source' property is resolved to "file://home/myUser/app/sounds/my.mp3" (2 slashes at the beginning) and item fails to find corresponding file (prints to debug console Error: "Resource not found.").

      However, if I specify absolute path with the right scheme ("file:///home/myUser/app/sounds/my.mp3" - 3 (or 1) slashes at the beginning), the audio is loaded.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            valentyn.doroshchuk Valentyn Doroshchuk
            pahaa7 Pavel Lysenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes