QWebFrame and baseUrl

Aaron J. Seigo aseigo at kde.org
Tue Nov 10 21:48:23 CET 2009


On November 10, 2009, Thiago Macieira wrote:
> if package()->filePath() returns a URL, it should have file:// already.
> 
> If it returns a file name, you should be using QUrl::fromLocalFile.

It returns a file name. It does not return a URL because the file is 
guaranteed to be local to thing (e.g. a plasmoid) using it.

> File paths are not URLs. Do not mix them.

Good point.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20091110/441e6233/attachment.sig 


More information about the Plasma-devel mailing list