Hi,
how can i get the userinput in an input-field?
QObject::connect( webView, SIGNAL(loadStarted()), this, SLOT(slotLoadStarted()) );
void slotLoadStarted()
{
QWebFrame *frame = webView->page()->currentFrame();
if (frame!=NULL)
{
QWebElementCollection collection = frame->findAllElements("input[name=email]");
foreach (QWebElement element, collection)
{
qDebug() << "element.toOuterXml" << element.toOuterXml();
qDebug() << "element.attribute value:" << element.attribute("value");
}
}
}
if i set the attribute, than it works, but i want to catch the user input, any ideas?