Saving images in the WebView as files
Posted: Wednesday 5th April 2017 12:57pm
In Firefox, Right-Clicking on an image will usually allow one to save the image to a local file. I am trying to do the same sort of thing from web pages displayed in a Qt WebView.
It is not too difficult to extract the link to the image source from the WebView, for example, "https://www.quantamagazine.org/wp-content/uploads/2017/03/EvoHorse_1K.jpg", but I don't know how to locate or specify the path to the source file within this link so that the file can be copied to a local folder.
I would be grateful for any suggestions.
bazzvn
It is not too difficult to extract the link to the image source from the WebView, for example, "https://www.quantamagazine.org/wp-content/uploads/2017/03/EvoHorse_1K.jpg", but I don't know how to locate or specify the path to the source file within this link so that the file can be copied to a local folder.
I would be grateful for any suggestions.
bazzvn