QUrl in Qt 4 tried to follow the ABNF grammar for URIs quite strictly, but it had a tolerant mode parser and, in the end, almost everything was accepted anyway. Looking into WebKit’s test, turns out that there are a lot more cases which QUrl failed to understand. In Qt 5, I’ll rewrite the parser to hopefully be even faster and accept some of those new cases, without sacrificing the conformance in compliant URIs.
Category Archive: Qt
Oct 10
Making a Qt Developer Days presentation
First of all, my apologies for not continuing the blog onQUrl yet. For a couple of reasons, I have not been able to continue the work there yet. I will get to it soon. One of those reasons is the subject of this blog: my Qt Developer Days presentation. This year, the organisers decided to …
Sep 30
The future of moc
Two days ago, on his blog on some Qt Creator news, Christian wrote: We’re currently prototyping what would happen if we replaced our own C++ code model with clang’s. The first comment in the blog was praising that research, but that got me thinking: what do we gain from it? Qt Creator already has a …
Sep 20
C++11 support in Qt 5
Marc Mutz posted today a blog calling for immediate support of C++11 in C++-based projects. He also linked to Herb Sutter’s blog saying the standard was unanimously approved in the ISO voting. In his blog, Marc calls for Qt 5 and KDE 5 to require C++11 in the compilers. I agree with the principle and …
Sep 19
QUrl in Qt 5: encoding
One of the classes I used to maintain in Qt was QUrl and I had worked quite extensively with KUrl previously, so I knew what was wrong with the current API. And during the Contributor Summit in Berlin, I volunteered to rewrite QUrl, to add some features KUrl needed. I described the original goals of …
Sep 12
New domain for Qt announced: qt-project.org
Lars has just announced on his blog that the Qt Open Source Project, under the Open Governance, will be moved to a new domain: qt-project.org (don’t bother copy/pasting, there’s nothing there yet). At the official Nokia Qt Blog, Daniel Kihlberg gives us the date for the launch: October 17th. The moving to a new domain …
Jul 21
Qt 4.8 beta 1 released
I’ve just realised that neither Eckhart’s post nor the QtWebKit post were aggregated on either Planet KDE nor Planet MeeGo. Quoting: It has been some weeks since we released the Qt 4.8 Technology Preview to the community. The release raised a lot of interest and we have received many comments in response to the Qt …
Jul 20
Table-driven methods with no relocations
The other day, someone in the qt-interest mailing list posted the link to an article entitled: How to make fewer errors at the stage of code writing, the third part in a series of articles about writing better code. In this particular article, the author ran a static code-checker tool on the Qt source code …
Jul 17
QString improved
On my birthday, I blogged about how I’d like QString to support proper UTF-8 strings and be much easier to use. The code that I said would be my preferred would be: QString s = u"Résumé"q; Recently, in Qt 5.0 we have begun to make steps to reach that. Most of the work was done …