New Europe
New Europe

Reputation: 31

QWebElement has initializer but has incomplete type

Whenever I run this code I get an error saying
QWebElement has initializer but has incomplete type

QWebElement t1 = ui->webView->page()->mainFrame()->findFirstElement("#version");
QString value = t1.attribute("value");
qDebug() << "T1 value:" << value;
value = t1.attributeNS(QString::Null(), "value");
qDebug() << "T1 ns value:" << value;
QVariant v = t1.evaluateJavaScript("this.value");
qDebug() << "Javascript value:" << v.toString(); // ok. returns changed text.

I am not filled in on what this error means so any help is much appreciated

Upvotes: 0

Views: 173

Answers (1)

reggie
reggie

Reputation: 626

did you include the QWebElement at the header?

#include <QWebElement>

Upvotes: 0

Related Questions