[Qt-interest] Problem with downloadRequested() from QWebView

Enrique Cuesta enriquecues at gmail.com
Mon Nov 8 21:08:58 CET 2010


Hi!

sometimes I love Qt....
sometimes I hate it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I would like add to my webbrowser simple download manager option:

*connect(ui->webView->page(), SIGNAL(downloadRequested(QNetworkRequest)),
this, SLOT(downloadRequested(QNetworkRequest)));*

and sample downloading function [slot]:

*void MainWindow::downloadRequested(const QNetworkRequest &request)
{
qDebug() << "Download Request";
}
*

but when I click on the link with file it doesn't work, It work only when I
right-click on link and choose "Save as"
Any one have got any idea ?


System: Windows 7 , Qt LGPL

sorry for my poor english...
thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101108/c45345c4/attachment.html 


More information about the Qt-interest-old mailing list