PDA

View Full Version : QTextEdit and toHtml()



Qiieha
24th April 2013, 15:59
Hi guys,
I have a question about QTextEdit and toHtml().
I use QTextEdit to format some text (bold, italic, underline, ...). If I get the html code, there are inline styles in the html-code.

Now I want to know, if I can manipulate the output and use css classes for the formatting?

thanks

ChrisW67
25th April 2013, 00:12
You can manipulate the HTML any way you like.

Qiieha
26th April 2013, 14:28
I know, but the QString I get from toHtml() is not manipulable.
Will say: I want that there is a <b> tag for bold formatting, instead of an inline stylesheet.