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 w开发者_运维百科e have QWebFrame frame
.
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();
精彩评论