5

Qt has its own wrapper on WebKit (QWebNode, QWebElement, etc).

How can I create HTML element using that Qt wrapper (obtain QWebElement of new HTML element)?

If it can help, say we have QWebFrame frame.

1 Answer 1

8

The only method I found is to call appendInside, appendOutside, etc methods of existing QWebElement elements with QString html markup as an argument.

QWebElement existingElement;
existingElement.appendInside( '<div/>' );
QWebElement newElement = existingElement.lastChild();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.