PDA

View Full Version : QTWebKit unable to load download link



myrky
1st June 2009, 17:19
I want to load a download link (i.e. http://www.videolan.org/mirror-geo.php?file=vlc/0.9.9/win32/vlc-0.9.9-win32.exe) with QTWebKit but i dont know how to do it. Any suggestions ?

wysota
1st June 2009, 18:42
Use QNetworkAccessManager. WebKit is a web browser, not a downloader.

myrky
1st June 2009, 21:38
any example on how tu use QNetworkAccesManager to download a link using QTWebKit ?

wysota
2nd June 2009, 10:16
It's in the docs.

yogeshgokul
9th July 2009, 07:09
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