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:
void ImageViewer::openurl() { http->setHost("www.trolltech.com"); }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.
Bookmarks