Results 1 to 5 of 5

Thread: QTWebKit unable to load download link

  1. #1
    Join Date
    Jun 2009
    Posts
    12

    Default QTWebKit unable to load download link

    I want to load a download link (i.e. http://www.videolan.org/mirror-geo.p....9.9-win32.exe) with QTWebKit but i dont know how to do it. Any suggestions ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTWebKit unable to load download link

    Use QNetworkAccessManager. WebKit is a web browser, not a downloader.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2009
    Posts
    12

    Default Re: QTWebKit unable to load download link

    any example on how tu use QNetworkAccesManager to download a link using QTWebKit ?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTWebKit unable to load download link

    It's in the docs.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTWebKit unable to load download link

    I have done this with QWebPage.
    The download link is currently unsupported for that. So you have to hadle it manually. There is a property, something like "handleunsupported***". You have to set it first.

    Then there is a signal, "unsupportedoccd***". You have to connect it with your slot. in that you can easily get the URL.
    Download it with HTTPE GET command.

    For more details you can see
    QtDemo->Demonstration->Browser Code.

    -Have Fun

Similar Threads

  1. How to open download link with WebKit
    By myrky in forum Newbie
    Replies: 1
    Last Post: 9th July 2009, 07:11
  2. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 05:34

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.