richardander
13th January 2010, 23:27
Hi,
I am put a QWebView in a dialog window and use QWebView to display the html file which has images.
Each time, there is any change in html file, I use setContent(...) to update QWebView and use the show() to display it.
The problem is that the text is updated in display, but the images are still the same even though the image's content has changes ( filename is still the same.). I have to close the applcation and restart it so that the Qwebview can display correctly. I used function reload(), but it doesn't help.
Can anyone give some help or let me know how to force it to refresh? I ever used the right mouse click menu "reload" on QWebview, it did not help either.
Thank you!
Richard
I am put a QWebView in a dialog window and use QWebView to display the html file which has images.
Each time, there is any change in html file, I use setContent(...) to update QWebView and use the show() to display it.
The problem is that the text is updated in display, but the images are still the same even though the image's content has changes ( filename is still the same.). I have to close the applcation and restart it so that the Qwebview can display correctly. I used function reload(), but it doesn't help.
Can anyone give some help or let me know how to force it to refresh? I ever used the right mouse click menu "reload" on QWebview, it did not help either.
Thank you!
Richard