Fraction format
-
Hey,
I have a Textarea in my application, and I would like to use a horizontal line as a Division character rather than /. I don't really know where I could even begin to achieve this.
If you have experience on how to achieve this, could you kindly point me to right direction?
-
Hey,
I have a Textarea in my application, and I would like to use a horizontal line as a Division character rather than /. I don't really know where I could even begin to achieve this.
If you have experience on how to achieve this, could you kindly point me to right direction?
@The-Smiling-Mickey said in Fraction format:
I have a Textarea in my application, and I would like to use a horizontal line as a Division character rather than /.
Do you mean you want to show the numerator on top of the denominator?
1 2 y = - x + - 2 3Or do you mean you want to show the division symbol? (
÷)TextArea isn't really designed for the top option. For the bottom option you can automatically replace all instances of
/with÷(see http://www.fileformat.info/info/unicode/char/00f7/index.htm) -
Yes, I mean the numerator on top of the denominator.
If it really isn't possible to do that in TextArea, is there any other way to achieve this?
-
Yes, I mean the numerator on top of the denominator.
If it really isn't possible to do that in TextArea, is there any other way to achieve this?
If it really isn't possible to do that in TextArea, is there any other way to achieve this?
yes there is. you have to program it :)
-
Yes, I mean the numerator on top of the denominator.
If it really isn't possible to do that in TextArea, is there any other way to achieve this?
@The-Smiling-Mickey I'm not aware of any ready-to-go solutions for Qt Quick.
For Qt Widgets, the 3rd-party
QwtTextclass supports MathML rendering: http://qwt.sourceforge.net/class_qwt_text.html