tags:

views:

47

answers:

1

hi,

i'm having QTextEdit widget with large content in it (content is XML). i want to take the content and set it into a QDomDocument, so i take the content using

document = textEdit->document();

but i dont know how to take it from here into a QDomDocument... what's the best way to do it ?

+1  A: 

Is there any problem with QTextEdit::toPlainText and QDomDocument::setContent?

Anton