PDA

View Full Version : Showing flash in webview again after hide() method without reloading it?



vertusd
25th February 2011, 08:51
i have a webview widget which contains a flash,if i hide it, and show it again, and the reload() method is not being called, the flash can't show again, but if i reload it , it will waste a lot of time, so is there any way Showing flash in webview again after hide() method without reloading it?

ps, the swf file is on the local disk

i tried

QWebSettings::setOfflineStorageDefaultQuota(4096);
but didn't work

thx in advace ,and sry for my english

wysota
27th February 2011, 08:58
Unfortunately if you hide() a plugin, WebKit destroys it so it has to be loaded again but you shouldn't need to reload the whole page to do that. Showing back the plugin should be enough.

vertusd
7th March 2011, 02:00
sry for my expression,what i mean is to hide the webview itself not the flash in it. the webview contains and only contains this flash.If i hide the webview, and show it again, the page of webview become white,and can't showing flash again.

wysota
7th March 2011, 10:48
Can you prepare a minimal compilable example reproducing the problem?