Results 1 to 2 of 2

Thread: QExpressionEvaluator

  1. #1
    Join Date
    Dec 2008
    Location
    PUNE (INDIA)
    Posts
    49
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QExpressionEvaluator

    Hi all experts ,Masters
    I am developing a scientific calculator , in which i have to execute an expression.
    I used QScriptEngine and QScriptValue classes .
    It Works fine for simple arithmatics .
    I have used Math.sin() , Math.cos() , Math.PI for executing the desired operations Math.pow(2,3) function for finding powers , but i want to use '^' operator instead of that function.

    Is there any other class which will reduce my work.

    I found QExpressionEvaluator , it is in a QBaseModule module .Please tell steps me how to use ExpressionEvaluator .
    I am using Qt 4.4 and it does'nt have QExpressionEvaluator.
    Attached Images Attached Images
    Thanks & Regards ,

    Vajindar Laddad .
    Trainee Developer.
    (INDIA).
    91+9325014248

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QExpressionEvaluator

    Hi,

    Qt itself doesn't provide a very good math architecture. For your calculator you should look for better libraries, that do the calculating (Note: Not the gui!). You may have a look at Eigen.

    Lykurg

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

    vajindarladdad (11th March 2009)

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.