[Qt-interest] how to find all images used by webpage
Richard Baron Penman
richardbp at gmail.com
Thu Jun 17 03:43:21 CEST 2010
hello,
I am using QWebView to load a webpage. How can I find a list of the image
URLs used by a webpage, including background images referenced in external
CSS?
One possibility is to evaluateJavaScript:
webView.page()->mainFrame()->evaluateJavaScript("document.getElementsByTagName(\"img\");");
But that feels messy and would miss CSS images anyway.
Any ideas?
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100617/01589087/attachment.html
More information about the Qt-interest-old
mailing list