Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QWebView library not found

Tags:

qt

When i try to add the QWebFrame library, i can't find it and the reply is no such file or directory so any idea why is this library not present. I am adding the library as follows:

#include <QWebFrame>

The error is caused by this line of code:

QString content=ui->webView->page()->mainFrame()->toPlainText();

Note that in a previous project i added this library and it was present.
Thanks in Advance!!

like image 587
Ameen Avatar asked Aug 23 '11 14:08

Ameen


1 Answers

I suspect you're missing the following line in your .pro file:

QT += webkit webkitwidgets
like image 161
Chris Avatar answered Oct 20 '22 18:10

Chris