[Qt-interest] Customize the HTML generated by QTextEdit?

Jason H scorp1us at yahoo.com
Thu Feb 3 19:23:24 CET 2011


I would probably look into XSLT or XQuery (via XmlPatterns module). I don't 
think you can get at the HTMLizer in side of Qt in the public API.




----- Original Message ----
From: Grant Limberg <glimberg at cedrus.com>
To: qt-interest at qt.nokia.com
Sent: Thu, February 3, 2011 12:58:12 PM
Subject: [Qt-interest] Customize the HTML generated by QTextEdit?

Is it possible to customize the HTML generated by QTextEdit?

For example, when calling text_editor->setFontWeight(QFont::Bold), QTextEdit 
generates the following:

<span style=" font-weight:600;">bold text</span>

whereas I'd like it to generate the following:

<strong>bold text</strong>

Is this possible?

Grant Limberg


glimberg at cedrus.com
http://www.cedrus.com/


      



More information about the Qt-interest-old mailing list