Results 1 to 6 of 6

Thread: Questions about the download with WebEngine

  1. #1
    Join Date
    Apr 2016
    Posts
    13
    Thanks
    8
    Qt products
    Qt5

    Default Questions about the download with WebEngine

    Hi friends, I am using WebEngine control , I want all files could be downloaded using the software IDM .
    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Questions about the download with WebEngine

    Looks like you hit the send button before you wrote your questions.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    MrCoder (15th May 2016)

  4. #3
    Join Date
    Apr 2016
    Posts
    13
    Thanks
    8
    Qt products
    Qt5

    Default Re: Questions about the download with WebEngine

    I want all files that the browser will be downloaded by Idm(Internet Download Manager) do

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Questions about the download with WebEngine

    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,
    _

  6. The following user says thank you to anda_skoa for this useful post:

    MrCoder (15th May 2016)

  7. #5
    Join Date
    Apr 2016
    Posts
    13
    Thanks
    8
    Qt products
    Qt5

    Default Re: Questions about the download with WebEngine

    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

  8. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Questions about the download with WebEngine

    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,
    _

  9. The following user says thank you to anda_skoa for this useful post:

    MrCoder (17th May 2016)

Similar Threads

  1. Printing WebEngine Pages
    By brixel in forum Newbie
    Replies: 2
    Last Post: 10th May 2016, 11:42
  2. Qt WebEngine crashes after downloading
    By mentalmushroom in forum Qt Programming
    Replies: 0
    Last Post: 5th April 2016, 10:37
  3. Custom build - webengine libraries not copied to installation
    By Thomas233 in forum Installation and Deployment
    Replies: 1
    Last Post: 17th December 2015, 12:04
  4. WebEngine set local storage path or programatically clear?
    By RolandHughes in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2015, 20:05
  5. Any kind of Web Inspector for WebEngine?
    By RolandHughes in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2015, 22:56

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.