Right on, JPN, about my mistake on the local/member variables - that is now corrected.

So, I am now using:

Qt Code:
  1. void Window::calculate()
  2. {
  3. int valJ1 = valueSpinBoxJ1->value();
  4. int valJ2 = valueSpinBoxJ2->value();
  5. int X = valJ1+valJ2;
  6. lcd3->display(X);
  7. qDebug("X = %.4f",X);
  8. }
To copy to clipboard, switch view to plain text mode 

lcd3 is working (obviously), but I still get consecutively "X=0.0000". My worry is that if I need to use X somewhere else, it will not be there with the correct value - how should I deal with that?

Thanks for your help so far though!

X-man