Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.4.0
-
None
-
Linux Mint 17
Description
QUrl seems to fail for local files unless they are specified with full path.
For example, this works:
QUrl url = QUrl::fromLocalFile("/home/dave/test.svg");
but this doesn't (when current working directory is correct)
QUrl url = QUrl::fromLocalFile("./test.svg");
Testing seems to indicate that the QUrl::QUrl(QString) constructor has same problem when using "file://" protocol. I believe this may work correctly on Qt4 but not completely sure: do not have a apples-to-apples comparison set up.