[Qt-interest] Strange behaviour of QUrl::resolved() using 'file'paths

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue May 24 15:36:12 CEST 2011


> How can QUrl know whether urltest is a folder or a file with no dots in its
> name?  It seems to assume it is a file.  Try adding a slash to the end of
> the baseUrl, ie QUrl baseUrl("/home/mandeep/urltest/");

Oops! Yes, you're correct! The trailing slash corrects the problem.

Thanks,
-mandeep



More information about the Qt-interest-old mailing list