path: root/examples/widgets/dialogs/findfiles
diff options
authorDavid Faure <>2016-08-02 14:07:37 +0200
committerSimon Hausmann <>2016-08-04 19:55:30 +0000
commit91a2c8630b2204831566ab8e523c747f9d8ec927 (patch)
treec59cf5fec4f157a54c8b64c42a6875b0b8f1dd57 /examples/widgets/dialogs/findfiles
parent47511046a404d223021b72aadd660e18faa2b90c (diff)
QUrl::resolved: keep treating file:name.txt as relative for now
8a33077 made QUrl::resolved() follow its documentation ("If relative is not a relative URL, this function will return relative directly.", where relative means scheme is empty). However there is much code out there (e.g. qtdeclarative) which relies on QUrl::fromLocalFile("fileName.txt") to be treated as relative, so for now, we still allow this (in Qt 5.6.x). For Qt 5.8, this commit will be reverted. [ChangeLog][QtCore][QUrl] [EDITORIAL: replaces 8a33077] QUrl::resolved() no longer treats a URL with a scheme as a relative URL if it matches this URL's scheme. For now it still treats "file:name.txt" as relative for compatibility, but be warned that in Qt 5.8 it will no longer consider those to be relative. Both isRelative() and RFC 3986 say that such URLs are not relative, so starting from Qt 5.8, resolved() will return them as is. Change-Id: Iff01e5b470319f6c46526086d765187e2259bdf5 Reviewed-by: Thiago Macieira <> Reviewed-by: Oswald Buddenhagen <>
Diffstat (limited to 'examples/widgets/dialogs/findfiles')
0 files changed, 0 insertions, 0 deletions