Re: QUrl isValid always true
You could write it yourself, but really, the old QUrl was non-compliant - "blabla" is a perfectly valid URL.
If you require certain characteristics such as protocol or site address (ie, a fully qualified URL rather than relative), then this can easily be done and you can AND the results of that function with isValid of QUrl.
Re: QUrl isValid always true
Thank you for the reply.
Yes I know that's valid uri and I don't question that.
I only ask because I don't want to "reinvent the wheel", and I know that I can write regexp for that, but I found many times in the past that Qt offers functionality that I need, so that's why I asked if they maybe moved / added that functionality "some place else".
Re: QUrl isValid always true
There is no mention in the GIT repo: http://qt.gitorious.org/qt/qt/blobs/...ib/io/qurl.cpp
So I can only assume it was considered a bug that needed fixing (without going through every commit, I couldn't comment in which it was that changed the functionality)