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

ZeroMQ on Windows, with Qt Creator -

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

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -