c++ - How do I convert file path into a URI? -


how convert filepath "c:\whatever.txt" file uri "file:///c:/whatever.txt" qt?

i've tried:

   qdebug() << qurl("c:/foo/baa/a.png").tolocalfile(); 

but output empty string.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -