2011-09-09 16 views
5

Qt ha il proprio wrapper su WebKit (QWebNode, QWebElement, ecc.).Come creare un elemento HTML in Qt?

Come è possibile creare un elemento HTML utilizzando tale wrapper Qt (ottenere QWebElement del nuovo elemento HTML)?

Se può essere d'aiuto, dire che abbiamo QWebFrame frame.

risposta

8

L'unico metodo che ho trovato è chiamare appendInside, appendOutside, ecc. Metodi degli elementi esistenti QWebElement con markup html QString come argomento.

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