Florian Hübner wrote: > Hi everyone, > is there a way to make QTextEdit take another guess at the text type > when using setText? The only way I found was creating a new QTextEdit > object but thats not really feasible in my case.
The text format is checked when you call setText(). If you have set the textformat to Qt.TextFormat.AutoText (which is the default), it will do a pass over the text and check it for html tags and set it as either plain text or html text depending on that. If you need to reevaluate the text you have written in the textedit into HTML you could for instance do: edit.setText(edit.text()); There is also the more explicit versions setHtml() and setPlainText() functions that may be preferable depending your usecase. best regards, Gunnar _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
