RESOLVED FIXED 29408
[Qt] QWebPage does not schedule repaint when adding content via Javascript
https://bugs.webkit.org/show_bug.cgi?id=29408
Summary [Qt] QWebPage does not schedule repaint when adding content via Javascript
Tor Arne Vestbø
Reported 2009-09-18 07:33:14 PDT
This bug report originated from issue QTBUG-3623 <http://bugreports.qt.nokia.com/browse/QTBUG-3623> --- Description --- I'm calling, using evaluateJavaScript(), a javascript method written in my html page. This javascript page add contents inside a <table id="mytable"></table> However, in this specific case, the QWebView is not updated. After some time, I move my mouse on my QWebView/Application, and suddenly I can see my new elements added dynamically into my web page. This case seems to only happen when I add "content" in my table: it never happens when I update the "content", or remove the "content". I solved my problem by doing: QWebFrame *wbframe = this->mainFrame(); wbframe->evaluateJavaScript(cmd); QWidget *widget = this->view(); if (widget!=NULL) widget->update(); But you shouldn't be required to schedule your own repaint.
Attachments
Tor Arne Vestbø
Comment 1 2009-09-25 07:10:30 PDT
Fixed in r47963
Note You need to log in before you can comment on or make changes to this bug.