The way to insert pattern
I have a little problem. I'm writing a program to drawing mathematical lineal functions. It's easy. I can do lineEdits to insert parameters a,b,c. But it's not satisfy me. I want to do sth better. Not only program to read from general form of pattern.
And in this point is the problem. I want to convert pattern which I write in listEdit.
Can you help me? Do you have some idea?
Re: The way to insert pattern
What do you mean by pattern ?
and can u explain with an example ?
Re: The way to insert pattern
In lineEdit I want to insert for example and I want to program draw it.
Re: The way to insert pattern
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