

The Qt Solution package includes a renderer for MathML http://www.trolltech.com/products/qt/addon/solutions/catalog/4/Widgets/qtmmlwidget that is available for owners of a commercial Qt license. You need a version >= 2.1, that is only available for Qt4.
To enable MathML support the following code needs to be added to the application:
#include <qwt_mathml_text_engine.h> QwtText::setTextEngine(QwtText::MathMLText, new QwtMathMLTextEngine());
Definition at line 39 of file qwt_mathml_text_engine.h.
| Public Member Functions | |
| QwtMathMLTextEngine () | |
| virtual | ~QwtMathMLTextEngine () | 
| virtual int | heightForWidth (const QFont &font, int flags, const QString &text, int width) const | 
| virtual QSize | textSize (const QFont &font, int flags, const QString &text) const | 
| virtual void | draw (QPainter *painter, const QRect &rect, int flags, const QString &text) const | 
| virtual bool | mightRender (const QString &) const | 
| virtual void | textMargins (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) const | 
| 
 | 
| Constructor. 
 Definition at line 22 of file qwt_mathml_text_engine.cpp. | 
| 
 | 
| Destructor. 
 Definition at line 27 of file qwt_mathml_text_engine.cpp. | 
| 
 | ||||||||||||||||||||
| Draw the text in a clipping rectangle 
 
 Implements QwtTextEngine. Definition at line 97 of file qwt_mathml_text_engine.cpp. | 
| 
 | ||||||||||||||||||||
| Find the height for a given width 
 
 
 Implements QwtTextEngine. Definition at line 41 of file qwt_mathml_text_engine.cpp. References textSize(). | 
| 
 | 
| Test if a string can be rendered by QwtMathMLTextEngine 
 
 
 Implements QwtTextEngine. Definition at line 131 of file qwt_mathml_text_engine.cpp. | 
| 
 | ||||||||||||||||||||||||||||
| Return margins around the texts 
 
 Implements QwtTextEngine. Definition at line 83 of file qwt_mathml_text_engine.cpp. | 
| 
 | ||||||||||||||||
| Returns the size, that is needed to render text 
 
 
 Implements QwtTextEngine. Definition at line 56 of file qwt_mathml_text_engine.cpp. Referenced by heightForWidth(). | 
 1.4.6
 1.4.6