[webkit-help] Fwd: how to get response in QtWebKit
Meir Yanovich
meiry242 at gmail.com
Mon Mar 15 08:57:14 PDT 2010
---------- Forwarded message ----------
From: Meir Yanovich <meiry242 at gmail.com>
Date: Sun, Mar 14, 2010 at 6:06 AM
Subject: Re: [webkit-help] how to get response in QtWebKit
To: Ariya Hidayat <ariya.hidayat at gmail.com>
sure i did try , here is my sample code (that dosnt work)
what i am doing here wrong?
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
browser = new QWebView();
connect(browser->page(),
SIGNAL(startRequested(QNetworkRequest)),
this, SLOT(startRequested(QNetworkRequest)));
m_manager = new QNetworkAccessManager( this );
connect(m_manager, SIGNAL(finished(QNetworkReply*)),this,
SLOT(replyFinished(QNetworkReply *)) );
browser->load(QUrl("http://www.cnn.com"));
}
void MainWindow::replyFinished( QNetworkReply *reply )
{
if ( reply->error() != QNetworkReply::NoError ) {
qDebug() << "Request failed, " << reply->errorString();
return;
}
qDebug() << "Request succeeded";
}
void MainWindow::startRequested(const QNetworkRequest &request)
{
QString defaultFileName =
QFileInfo(request.url().toString()).fileName();
if (defaultFileName.isEmpty())
return;
}
On Sun, Mar 14, 2010 at 12:00 AM, Ariya Hidayat <ariya.hidayat at gmail.com>wrote:
> > can someone please give me short tutorial or sample source code
>
> Read bit.ly/webkit-gethelp first!
>
> Have you given it at least a try (by yourself) using the links I have
> shown before?
>
>
>
> --
> Ariya Hidayat
> http://www.linkedin.com/in/ariyahidayat
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100315/0f5d65f5/attachment.html>
More information about the webkit-help
mailing list