2 Attachment(s)
Is MathML workable in Qwt?
Created very simple MathML formula with this editor, inserted it into my code:
Code:
logitLabel->setPlainText(logitFormula(1, 2, 3, 4));
QString SetupPanel
::logitFormula(double arg1,
double arg2,
double arg3,
double arg4
) const {
"<math><mn>%1</mn><mo>+</mo><mfrac><mn>%2</mn><mrow><mn>1</mn><mo>+</mo>"
"<msup><mi>e</mi><mrow><mn>%3</mn><mo>·</mo><mi>X</mi><mo>+</mo>"
"<mn>%4</mn></mrow></msup></mrow></mfrac></math>")
return formula;
}
However formula looks strange in application:
Attachment 11959
That is how it looks in editor:
Attachment 11960
What is wrong here: MathML implementation in Qwt, formula editor, need to simplify formula or what? Is MathML ready for production here or need to search for other possibilities to render formulas?
Re: Is MathML workable in Qwt?
Some solution could be found here: http://www.qtcentre.org/threads/5429...ath-expression
Hope Qwt author will see the problem and able to add necessary patches to official sources repository.