Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] accessing file:/// outside the .QRC
Forum Updated to NodeBB v4.3 + New Features

[Solved] accessing file:/// outside the .QRC

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 4.9k 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.
  • N Offline
    N Offline
    nizeguy
    wrote on last edited by
    #1

    EDIT: Fixed, no need to reply.

    I compiled the qml files to a qrc resource.
    Now i must access a resource that is in /a.rss , but file:///a.rss only searches inside the compiled qrc . How can i access files outside ?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      Use qrc:/a.rss

      --
      Vasiliy

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mitricho
        wrote on last edited by
        #3

        Good question! I'd like to see the answer :)
        "qrc:/a.rss" doesn't helps: it still complaining "Cannot open: qrc:image.jpg"

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hydr0g3n
          wrote on last edited by
          #4

          nizeguy > How did you fix it? I have been struggling with the exact same issue and could not find a solution yet.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hydr0g3n
            wrote on last edited by
            #5

            Ok, for people who are looking for a solution, it turns out it is pretty easy.

            Just explicitly prepend "file://" to files path outside the qrc.

            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