PDA

View Full Version : Qwt Tex Text Doesnt work for me



gbmtoday
21st November 2010, 11:55
Hey guys

I want to use qwt for rendering tex texts , but it doesnt work properly .



QPainter * painter = new QPainter (this);
QRect rect = QRect (0 , 0 , 400 , 200);
qtext = new QwtText ("\sqrt{\pi}",QwtText::TeXText);
qtext->draw(painter,rect);


But i just shows the original text and doesnt transform it to math symbols .

Anybody has an idea ?!

Thank u 4 your time.

Uwe
21st November 2010, 19:48
Tex support is not implemented - so no surprise, that it doesn't work for you.

Instead you could try to use MathML ( or use texvc to translate Tex to MathML ). In the Qwt 6.x release candidates the MathML text engine is part of the default build process, with Qwt 5.x you have some extra work to download and patch the code from the Qt solution package ( read the READMEs ).

Uwe