PDA

View Full Version : QTextEdit::toHtml()



lewis
19th July 2006, 19:41
Hi,
I have a QTextEdit in which there is text containing HTML tags. The text is displayed in a different size and color. Im trying to get that text in order to display it in a QLabel. The QLabel will display many QString obtained from a QTextEdit.

I tried the toHtml() function, however, a carrier return always separates each QString and this is not what I want.

I simply want to store the exact text I see in the QTextEdit to a QString and then display many such QString horizontally.

thx.

high_flyer
20th July 2006, 09:57
don't you need QTextEdit::toPlainText()?

lewis
20th July 2006, 14:20
No, this clears all formatting. I have bigger font of different colors.

lewis
20th July 2006, 14:31
I solved my problem, but I had to remove some functionnalities.

If any1 needs to know how I solved it (which I doubt will happen since its a very bad solution) post here and ask.