qwt-mml-dev
qwt-mml-dev copied to clipboard
Unable to load partial derivatives dx/dy in FormulaView *d_view
Hi, for some reason the dx/dy doesn't load properly with this mathml expression:
<math>
<mrow>
<mrow>
<mfrac>
<mrow>
<mo>
∂
</mo>
<mi>
f
</mi>
</mrow>
<mrow>
<mo>
∂
</mo>
<mi>
x
</mi>
</mrow>
</mfrac>
</mrow>
</mrow>
</math>
This is what i'm seeking to achieve:
but this is what I get:
Any help would be greatly appreciated, thank you!
Hi @ganimede. Your MathML code contains some entity references (∂
) and QDomDocument,
which is used to read your MathML code, doesn't recognise it as such. You can see that by loading your code in Qt's simpledommodel
example:
As you can see, ∂
is considered as being the element part
rather than the entity reference ∂
.
So, although qwt-mml
does recognise ∂
(see here), I must confess that I don't know how to get QDomDocument
to recognise them, assuming that it can be done at all.