[Interest] file:// is harshing my zen

Jason H jhihn at gmx.com
Thu Dec 17 16:46:43 CET 2015


> > 
> >   if (uri.scheme() == "file")
> 
> Better:
> 	if (uri.isLocalFile())
> 
> QUrl caches internally whether the scheme() is "file", so there's no string 
> comparison.


Thanks Thiago, that's good to know!



More information about the Interest mailing list