![]() |
Home |
The QtMmlDocument class renders mathematical formulas written in MathML 2.0. More...
#include <QtMmlDocument>
The QtMmlDocument class renders mathematical formulas written in MathML 2.0.
This class provides a direct API to the rendering engine used by QtMmlWidget. It can be used to paint MathML inside other widgets.
All methods work the same as the corresponding methods in QtMmlWidget.
Constructs an empty MML document.
Destroys the MML document.
Returns the point size of the font used to render expressions whose scriptlevel is 0.
See also setBaseFontPointSize(), fontName(), and setFontName().
Clears the contents of this MML document.
Returns the name of the font used to render the font type.
See also setFontName(), setBaseFontPointSize(), baseFontPointSize(), and QtMmlWidget::MmlFont.
Renders this MML document with the painter p at position pos.
Sets the point size of the font used to render expressions whose scriptlevel is 0.
See also baseFontPointSize(), fontName(), and setFontName().
Sets the MathML expression to be rendered. The expression is given in the string text. If the expression is successfully parsed, this method returns true; otherwise it returns false. If an error occured errorMsg is set to a diagnostic message, while errorLine and errorColumn contain the location of the error. Any of errorMsg, errorLine and errorColumn may be 0, in which case they are not set.
text should contain MathML 2.0 presentation markup elements enclosed in a <math> element.
Sets the name of the font used to render the font type to name.
See also fontName(), setBaseFontPointSize(), baseFontPointSize(), and QtMmlWidget::MmlFont.
Returns the size of this MML document, as rendered, in pixels.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Solutions |