Results 1 to 2 of 2

Thread: downloadRequsted() problem (QWebView)

  1. #1
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question downloadRequsted() problem (QWebView)

    Hi!
    I would like add to my webbrowser download manager option. I added QWebView into Form and I added this code:
    Qt Code:
    1. connect(ui->webView->page(), SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. void MainWindow::downloadRequested(const QNetworkRequest &request)
    2. {
    3. downloadmanager *dm = new downloadmanager();
    4. dm.append(request.url().toString());
    5. dm.show();
    6. }
    To copy to clipboard, switch view to plain text mode 
    But when I click on the link with file it doesn't work, It works only when I right-click on link and choose "save link"

    I tried this code but the result is same.
    Qt Code:
    1. connect(ui->webView->page(), SIGNAL(downloadRequested(const QNetworkRequest&)), this, SLOT(downloadRequested(const QNetworkRequest&)));
    To copy to clipboard, switch view to plain text mode 
    Sorry for my poor English.

  2. #2
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: downloadRequsted() problem (QWebView)

    Any idea?

Similar Threads

  1. Problem With QWebView
    By traxtopel in forum Qt Programming
    Replies: 2
    Last Post: 25th February 2010, 18:01
  2. QWebView problem
    By wirasto in forum Qt Programming
    Replies: 2
    Last Post: 19th November 2009, 02:32
  3. Problem With QWebView
    By ivi2501 in forum Qt Programming
    Replies: 8
    Last Post: 2nd August 2009, 19:37
  4. Problem in QWebView
    By navi1084 in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2008, 19:27
  5. QWebView problem with pdf
    By oscar in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2008, 15:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.