You will need a math expression parser for that. I cannot recommend writing one yourself, unless you can restrict the number of operators/functions or you have a lot of time at your disposal.
Quick search: http://www.codeproject.com/KB/recipe...athParser.aspx
Another approach would be to do this with qtscript. The syntax would be different, but the user could easily define his own functions etc..
HIH
Johannes




Reply With Quote

Bookmarks