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.
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
Post a Comment