[Qt-interest] undefined type 'QWebFrame' , cant use the evaluateJavaScript method

Meir Yanovich meiry242 at gmail.com
Sat May 1 15:01:07 CEST 2010


Hello all
im try to use the evaluateJavaScript method to execute java script
but im getting compiler error when i use :
QString code = "document.getElementById('email').value='xxxx at gmail.com'";
 QWebView *v = ui.webView;
// or this:
 *v->page()->mainFrame()->evaluateJavaScript(code);
//or this:
 ui.webView->page()->mainFrame()->evaluateJavaScript(code);

The compiler error is :
error C2027: use of undefined type 'QWebFrame'
        g:\qt\4.6.1\src\3rdparty\webkit\webkit\qt\api\qwebpage.h(41) : see
declaration of 'QWebFrame'
.\MainWindow.cpp(63) : error C2227: left of '->evaluateJavaScript' must
point to class/struct/union/generic type
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100501/0d3e0079/attachment.html 


More information about the Qt-interest-old mailing list