> > > > 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!