Results 1 to 2 of 2

Thread: Qwt Tex Text Doesnt work for me

  1. #1
    Join Date
    Jan 2010
    Posts
    18
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qwt Tex Text Doesnt work for me

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt Tex Text Doesnt work for me

    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

  3. The following user says thank you to Uwe for this useful post:

    gbmtoday (21st November 2010)

Similar Threads

  1. QLabel setPixmap doesnt work
    By arpspatel in forum Qt Programming
    Replies: 3
    Last Post: 1st March 2010, 23:24
  2. connect doesnt work
    By john_god in forum Newbie
    Replies: 4
    Last Post: 23rd November 2008, 10:36
  3. ldapsearch doesnt work.
    By shamik in forum General Discussion
    Replies: 0
    Last Post: 3rd April 2008, 08:25
  4. QFtp...doesnt seems to work ....!!!
    By salmanmanekia in forum Qt Programming
    Replies: 10
    Last Post: 25th February 2008, 09:30
  5. How come this doesnt work?
    By ShaChris23 in forum Newbie
    Replies: 8
    Last Post: 16th June 2007, 05:43

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.