Hey there,

Here is a trick one.

I'm doing the following on a QWebFrame:

Qt Code:
  1. QWebView::page()->mainFrame()->
  2. evaluateJavaScript(QString("var ni = document.getElementById('%1');"
  3. "ni.innerHTML = '%2';").
  4. arg(QString::number((int) chunk)).
  5. arg(chunk->html()));
To copy to clipboard, switch view to plain text mode 

The above is a javascript command that modifes an element's html content.

Then I want to scroll my mainFrame to the max :

Qt Code:
  1. int max = webBox->page()->mainFrame()->scrollBarMaximum(Qt::Vertical);
  2.  
  3. webBox->page()->mainFrame()->setScrollBarValue(Qt::Vertical, max);
To copy to clipboard, switch view to plain text mode 

Unfortunately the javascript is not evaluated in time, so I get wrong scrollbar values.

Is it possible to be notified when the javascript is REALLY evaluated ?

Is it possible forcing the scrollbar to stay down ?

Thanks.