Important: Please read the Qt Code of Conduct -

Network transparency for loading files?

  • Hi,
    I would like to use network transparent Urls in my object which is not a Qml component.
    I would like to be able to use URLs like "qrc:/bla.txt", "http://localhost/bla.txt" or file:/home/wooyay/file.txt" interchangeably and be able to load a text file from these locations. Is there some easy way to do this? It seems like Qml does a lot of work on translating this kind of Url, is there some way to do this outside of Qml?


  • Can anybody answer this?

  • Lifetime Qt Champion


    Interesting low-level question, you should try to ask it on the interest mailing list. You'll find Qt's developers/maintainers there (this forum is more user oriented)

Log in to reply