Sorry, but I can't seem to find how to send a private message on here. Anyway, you can find some formulas here and then my email address from my GitHub account.
Sorry, but I can't seem to find how to send a private message on here. Anyway, you can find some formulas here and then my email address from my GitHub account.
Guys, what is the status of Your current development? Is it ready to use: http://www.qtcentre.org/threads/6610...orkable-in-Qwt ?
Uwe and I did exchange quite a few emails, and I ended up reworking the MathML engine quite a bit. I haven't done anything about it for quite a while, so I can't remember whether the version at https://github.com/uwerat/qwt-mml-dev is still up to date. So, just in case, you can find 'my' version at https://github.com/opencor/opencor/t...engines/mathml. What is sure is that the equation you mention at http://www.qtcentre.org/threads/6610...orkable-in-Qwt can now safely be rendered.
agarny, Your sources works fine. Thank You very much!!!
Some bugs however:
- formula background is white, need to be gray as button default color. autoFillBackground does not help.
- Aslo font color changing through palette propery has effect: only for plain text, for MathML engine still black.
- QwtText::setColor() has no effect
- QwtText::setBackgroundBrush() has no effect
- QwtText::setPaintAttribute() for color or background true or false has no effect
Any way to fix?
Note: need to add qwt_mml_entity_table.h/cpp files to mathml.pro also.
Uwe, any chance to include this patches into official version? Thanks!
Last edited by AlekseyK; 26th May 2016 at 01:52.
Sorry AlekseyK, qtcentre.org wasn't working for me these past few days. Anyway, glad that the MathML renderer works for you.
Regarding the issues that you have found:
- formula background is white, need to be gray as button default color. autoFillBackground does not help.
I made it white because that seemed more 'natural' to me, not to mention that this widget is not a button, so I don't see why it should be grey.- Aslo font color changing through palette propery has effect: only for plain text, for MathML engine still black.
I am not sure what you mean by this, sorry.- QwtText::setColor() has no effect.
- QwtText::setBackgroundBrush() has no effect.
- QwtText::setPaintAttribute() for color or background true or false has no effect.
I am not sure to what you are referring here. I mean, the widget is QwtMathMLDocument, so...?- need to add qwt_mml_entity_table.h/cpp files to mathml.pro also.
Quite possible. Personally, I use CMake, so...
I am sure there must be a way to fix your 'issues'. Unfortunately, I really don't have time for it at the moment, not least since it has yet to be officially included in Qwt. However, if Uwe was to officially incorporate my changes into Qwt, then I would certainly try to find the time to iron things out.
It was down.
Thank You very much for this.
For document - yes. For label it should have label background, like in my example: http://www.qtcentre.org/attachment.p...138969&thumb=1
Formula font color. It is always black. I'd like to change it.
I use QwtTextLabel.
Thank You. Hope Uwe will see this conversation and add patches to official Qwt sources.
Unfortunately I lost a lot of time with implementing all the spline interpolation algos ( out of personal interest ) and I'm also working on another open source project, what is the reason why I'm heavily delayed with 6.2 - at least I hope I can release 6.1.3 soon.
Alans version of the MathML stuff can be seen as the official version - it is planned to become part of Qwt 6.3. But always keep in mind, that its not my priority to offer a first class MathML package - all I ( and of course Alan in the first place ) did was to turn the orphaned MathML implementation from the Qt solutions package into something "usable".
Uwe
Thank You, Uwe! Will wait for qwt updates. Of course good to have Alan's version earlier: in 6.2 or 6.1.3. Alan's version works fine, only good to fix issues mentioned above.
Bookmarks