[Qt-interest] Problem with downloadRequested() from QWebView
Mark Long
mlong at weatherdata.com
Mon Nov 8 21:47:41 CET 2010
Please be sure to reply to the list.
Thanks!
-Mark
On 11/08/2010 02:43 PM, Enrique Cuesta wrote:
> thank you for your reply...
> but...
> if you google it.... you can find that a lot of people is facing the
> same problem ... and no solution !!
> (i thing that maybe is a problem on windows... bacause I have seen
> programs in linux using downloadRequested)
>
>
> linkClicked is not what I need...
> anyway i'm going to try unsupportedContent() !!
>
> thank you
> sorry for my poor english
>
>
> 2010/11/8 Mark Long <mlong at weatherdata.com <mailto:mlong at weatherdata.com>>
>
> 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