Please nominate your Qt Champions for 2021!

QWebview Downloading Issue

  • I loaded a url using QWebview. I need to download a file by clicking another link from web page which is loaded QWebView. I have a following code

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

    But downloadRequested() only called for right click. But when directly link click, it does not emit any signal. Is there any other signal when click on downloading link in Qwebview?

    Thank you.

Log in to reply