[Development] Intended QUrl::toDisplayString behavior on Windows

Thiago Macieira thiago.macieira at intel.com
Wed Aug 13 16:57:55 CEST 2014


On Wednesday 13 August 2014 14:14:38 Kevin Funk wrote:
> Hey,
> 
> while porting to Qt5/KF5, we've found some issues with the new
> QUrl::toDisplayString method on Windows.
> 
> Running the attached test-case [1], we get the following results
> with Qt5 dev branch on Windows:
> 
>   path "/C:/tmp"
>   toLocalFile "C:/tmp"
>   toDisplayString "file:///C:/tmp"
>   toDisplayString(QUrl::PreferLocalFile) "/C:/tmp"
> 
> I'm especially puzzled by the latter one
> (toDisplayString(QUrl::PreferLocalFile)), which is supposed to return a
> "human-readable" string for the given url.
> That should return "C:/tmp", right?

It should be.

Does fromUserInput("C:/tmp") return "file:///C:/tmp" ?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list