I have a QWebView object loading a web page. I need to save a picture from the page to the memory. The URL of the picture is dynamic, but it follows a regexp.
How do I do that with QWebView?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure, you can’t save image with
QWebView. But you might be interested inQWebFrame::toHtml, using which you can obtain all the content in HTML.Then you need to regexp to obtain image URL, fetch it, and finally save it. Solution is here.