For help: Image does not update in QWebView
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
Re: For help: Image does not update in QWebView
Can anyone help?
Thank you!
Re: For help: Image does not update in QWebView
Any comment is appreciated!
Thank you!
Re: For help: Image does not update in QWebView
Assuming you're using 4.6, try:
Code:
webView->triggerPageAction(QWebPage::ReloadAndBypassCache);
Re: For help: Image does not update in QWebView
I am using Qt 4.5. I seem to have to upgrade Qt if this is true.
Is there any other possible reasons?
Thank you!
Re: For help: Image does not update in QWebView
I have the same problem and i tried:
Code:
webView->triggerPageAction(QWebPage::ReloadAndBypassCache);
but it doesn't work.
Does anyone found a solution on this? Any help is appreciated!
Thank you