开发者

How to create HTML element in Qt?

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜