> Well, you mentioned toLocalFile, so I assume you already know that "trim > it" should actually use that. Also: > > if (uri.scheme() == "file") > > > Why isn't there a *static* QUrl::toLocalFile()? > > What would that mean? A URI can be converted to a local file name. What > input would you give such a function other than a URI (i.e. a QUrl)? And > since you have a URI (QUrl) already, why do you need a static method?
It means that I would not have to have an instance of a QUrl class. Currently I'd have to do: QUrl url(string); return url.toLocalFile(); Why can't I just do QUrl::toLocalFile(string) I shouldn't need an instance to strip file:// if it exists. > Caveat: I don't use QML. If that's giving you QString's that really > should be QUrl's, I'd be complaining about that... It does. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest