Qt 4.4 Is Awesome (Or Creating a Web Browser In Minutes)
This morning Trolltech (now part of Nokia) released a preview of new application called Qt-Creator, a lightweight IDE optimized for developing Qt applications. Being a big fan of Qt, I’ve decided to give this IDE a quick spin and in the process I decided to play around with WebKit that is included with Qt 4.4 and up.
The result is what made me write this post; within minutes I had my very own functional (but very basic) web browser! The surprising part was that it did not even take many lines of code. All I had to do was to open Qt Designer (integrated into Qt-Creator), add a web widget, back/forward buttons, an address bar and connect it all with Qt signals. The only important actual code I actually wrote was to connect the address bar with the web widget.
Fain, this browser is very simple and doesn’t really do much. But nevertheless it is impressive what can be done with so little code. Instead of having to mess around with parsing and displaying a web page, one can spend more time improving the UI… I already have a few ideas that I want to try.