Hey guys

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

Qt Code:
  1. QPainter * painter = new QPainter (this);
  2. QRect rect = QRect (0 , 0 , 400 , 200);
  3. qtext = new QwtText ("\sqrt{\pi}",QwtText::TeXText);
  4. qtext->draw(painter,rect);
To copy to clipboard, switch view to plain text mode 

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

Anybody has an idea ?!

Thank u 4 your time.