[Qt-interest] undefined type 'QWebFrame' , cant use the evaluateJavaScript method
Meir Yanovich
meiry242 at gmail.com
Sat May 1 15:10:11 CEST 2010
sorry i found the problem , i have missing header
On Sat, May 1, 2010 at 4:01 PM, Meir Yanovich <meiry242 at gmail.com> wrote:
> 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/082bb200/attachment.html
More information about the Qt-interest-old
mailing list