PDA

View Full Version : QT Web browser



prajith
12th September 2013, 11:06
Hi,

I have been trying to develop a qt web browser for my organaisation, but i am not good in qt/c/c++ languages, so here is my code that I have developed till today. I want to add a tab option to this script, but I don't know how to do this. If any one can help on this that would be great.


#include <QApplication>
#include <QtGui>
#include <QtWebKit>
#include <QNetworkProxy>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);

QNetworkProxy proxy;
proxy.setType(QNetworkProxy::HttpProxy);
proxy.setHostName(QString("XX.XX.XX.XX));
proxy.setPort(9191);
proxy.setUser("XXXXX");
proxy.setPassword("XXXXXXX");
QNetworkProxy::setApplicationProxy(proxy);

QWebView view;
view.load(QUrl("http://www.whatismyip.com"));
view.show();
return a.exec();
}

aamer4yu
13th September 2013, 11:41
Did you check Qt web browser example ?
I remember there is a full fledged browser in Qt examples... including tabs I guess.

prajith
14th September 2013, 07:36
But, I want to hide the url bar and view source page option, and assign the url in the script, so agents can't see the url which I set in the script. I hope you can help on this,