Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebview Downloading Issue
Forum Updated to NodeBB v4.3 + New Features

QWebview Downloading Issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 390 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shahina
    wrote on last edited by Shahina
    #1

    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

    widget.cpp:
    ui->webView->load(QUrl("http://my_url"));
    ui->webView->page()->setForwardUnsupportedContent(true);
    connect(ui->webView> page() , SIGNAL(downloadRequested(QNetworkRequest)) ,
    this, SLOT(download(QNetworkRequest)));
    connect(ui->webView->page(), SIGNAL(unsupportedContent(QNetworkReply*)),
    this,SLOT(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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved