[Qt-interest] Problem with downloadRequested() from QWebView
Mark Long
mlong at weatherdata.com
Mon Nov 8 21:18:28 CET 2010
I'm not sure exactly what your use case is. Perhaps you want to use the
linkClicked() signal instead of downloadRequested()? Or perhaps
unsupportedContent() could trigger what you're looking for.
As I understand it, downloadRequested() is behaving like it's supposed to.
-Mark
On 11/08/2010 02:08 PM, Enrique Cuesta wrote:
> 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
>
More information about the Qt-interest-old
mailing list