Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How do I download a file using QWebView?
Dr. No last edited by
There are a bunch of attachment files in the page which I'd like to allow the user download. The default behavior if you click upon link which is an attachment file, is don't open anything at all (I expected the downlaod prompt window actually...) so I found I could call setForwardUnsupportedContent(true) so I'll get notyfied when a new download is requested by downloadRequested/unsupportedContent.
My question is, how do I implement such method to download the requested file to local PC, considering it's a page where it must be consider the context of having cookies and such (the user is logged in to see those attachments) so I can't do a plain http request, but pass cookies and everything in the request? I have no code to show yet becaue I still have no idea how do so.
Any help, direction towards something that can help is very appreciated. Thanks in advance.
Did you see this page ?