I have a better idea - you explain what you did in code and I'll say what you did wrong (if anything).
I have a better idea - you explain what you did in code and I'll say what you did wrong (if anything).
hi,
i used this code:
#include <QApplication>
#include <QWebView>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QWebView *view = new QWebView();
view->load(QUrl("http://www.webstandards.org/files/acid2/test.html"));
view->show();
return app.exec();
}
but it is not showing the webpage.it is showing an empty widget.I want to change the proxy settings .
i tried that and i posted that code in my first post.
how to change the proxy settings of qwebview??
plzz help n tell me how to load a webpage and how to change proxy settings..
read once again what wysota posted already... the solution is already there!
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
i used QNetworkProxy::setApplicationProxy() also. but still code doesn't work..
Widget::Widget(QWidget *parent): QWidget(parent)
{
QNetworkProxy proxy;
proxy.setType(QNetworkProxy::HttpProxy);
proxy.setHostName("10.8.58.40");
proxy.setPort(8080);
QNetworkProxy::setApplicationProxy(proxy);
QWebView *web=new QWebView();
web->load(QUrl("http://www.google.com"));
web->show();
}
Which version of Qt do you use? Releases earlier than 4.5.0 don't use applicationwide proxy settings for WebKit. It should work in 4.5.0 (at least it had been said it would work).
i am using qt-sdk-2009 ,qtcreator 1.0 based on qt 4.5.........
but still it is not working.....
Bookmarks