hi
i have a C++ class that evaluate an arithmitic expression like 9+8-(9/5)
in the consol i have a good result.
but if i instantiate my class in a Qt project and pute the result in QLineEdit i have 0

a slot that instantate and calclate the expression :
Qt Code:
  1. void calculatrice::evaluateClicked()
  2. {
  3. arithmeticExpression *e = new arithmeticExpression( inputeLE->text().toStdString() );
  4. QString st;
  5. st.setNum( e->evluate() );
  6. outputeLE->setText( st );
  7. }
To copy to clipboard, switch view to plain text mode 
evluate() return a double

thanks
++