PDA

View Full Version : QWebView - change missing image icon



lukass
10th April 2013, 19:34
Hello,

how can I change default missing image icon in QWebView when resource not loaded?

Default missing image icon:
8914

BalaQT
11th April 2013, 13:09
Did you try

void setIcon(const QIcon & icon)

Bala

lukass
11th April 2013, 17:55
Did you try

void setIcon(const QIcon & icon)

I didn't try. Where I can find setIcon function? I'm using Qt 4.8.4.
I do not mean 'favicon'.

I want change fallback image which is displayed when eg. image not loaded (because HTTP 403 error or other).

QWebView web_view = /*...*/
web_view.setHtml("<img src='http://www.example.com/notexist.png'>");