Home of Toobo

The open source embedded web companion.

Messing with QT + Webkit

QT + Webkit

I was just trying to figure out what UI framework should I use for the toobo project. While researching this, I came across the well known QT project. I installed the non-embedded version of QT (I think QT 4) under xubuntu and created a sample project.

It took me less than 10 lines of code to create a webkit view. I am quite impressed with the first look  of QT already. Of course getting QT Embedded running on the target maybe a different issue. But at least for x86, QT seems to be really simple to develop.

For some reason I could’t upload the screenshot via firefox. So I gave the QT+Webkit browser a shot and it works right out of the box. I was able to select the screenshot and upload it from the demo browser. Isn’t that slick? :P

The code to do this is as simple as follows -

this->qv = new QWebView(NULL);

this->qv->load(QUrl(url));

this->qv->show();

Here is the project file if you want to try it -

qt + webkit project file

Cheers.

Tags: ,

Leave a Reply

Linux Podcasts