Problem with adding value

Hi,

I have such a keyboard, clicking on the buttons are displayed on a red background, but for example 5 and 25 is displayed as 525, how can I make the values add together and be displayed?

Have each button dispatch its value back to the calculator and accumulate it in the variable. As in:

  • in the Key widget:

In the calculator:

Image from Gyazo

Thank you!