[Qt-interest] QWebFrame::addToJavaScriptWindowObject() - javascript functions fail to run

Stephen Collyer scollyer at netspinner.co.uk
Tue May 25 16:18:12 CEST 2010


On 24 May 2010 15:31, Stephen Collyer <scollyer at netspinner.co.uk> wrote:

>
>
> frame->evaluateJavaScript("paragraph_object.show_paragraph_labels.connect(show_labels);");
>
> frame->evaluateJavaScript("paragraph_object.hide_paragraph_labels.connect(hide_labels);");
> }
>
>
I've discovered that if I embed the javascript connection statements
directly in the HTML, page, then the connections are made.

This would seem to be an obscure bug in evaluateJavaScript, I guess.

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100525/f36393d0/attachment.html 


More information about the Qt-interest-old mailing list