Hi,
I tried to implement the 'QHttp' example given in the Qt documents.
What I want is that when I click "openTrolltech",the Trolltech webpage should open up.

The code I am using is a slightly cropped version of the one given in the docs--
Qt Code:
  1. void ImageViewer::openurl()
  2. {
  3. QHttp *http=new QHttp(this);
  4. http->setHost("www.trolltech.com");
  5. http->get(QUrl::toPercentEncoding("/index.html"));
  6.  
  7. }
To copy to clipboard, switch view to plain text mode 

It's not showing any error but the page/Browser isn't opening up.
I added QT+=network in the .pro file and added the proper header files.
What's wrong with the code ?Please advice.
Thanks in advance.