Hi friends, I am using WebEngine control , I want all files could be downloaded using the software IDM .
thanks
Hi friends, I am using WebEngine control , I want all files could be downloaded using the software IDM .
thanks
Looks like you hit the send button before you wrote your questions.
Cheers,
_
MrCoder (15th May 2016)
I want all files that the browser will be downloaded by Idm(Internet Download Manager) do
So you have a browser which has a download manager.
And you want to access the used download directory in a Qt application?
You could check if QStandardPaths returns that directory for QStandardPaths::DownloadLocation
If not you will have to provide the path somehow, e.g. allowing the user to confiigure it or, if you find it, by reading the browsers configuration data.
In either case you can then use QDir or QDirIterator on the path to get the individual files.
Cheers,
_
MrCoder (15th May 2016)
Thanks for the answer
I want to be when you click on the link to download the file using a program IDM (Internet Download Manager) file to be downloaded . Like other browsers
http://s7.picofile.com/file/8251555992/111.png
Ah, I think I understand better now.
You are using a WebEngineView and want pass download request to an external software called IDM.
It doesn't look like you can get the URL of the download from the view's WebEngineProfile downloadRequested() signal and it doesn't look like there is any other signal that would allow to intercept clicks on links.
I guess the options are to
- inject some JavaScript into the page that intercepts clicks, communicates with the core of your application and lets you handle the download
- find the implementation of the download handling and add support for the external download manager there
Cheers,
_
MrCoder (17th May 2016)
Bookmarks