Quote Originally Posted by harish View Post
I had already found the link which have given sir.In this they are using javascript code but i am using C++.
Last code you pasted was definitely using javascript.

From this i was able to get the addition operation performed and displayed but in case if i am having 10 buttons with integers from 0-9 how to declare the result function:


in .qml file:

javascript Code:
  1. onClicked: {
  2. t.text = StringHelper.apple(????????????????);
  3. }
To copy to clipboard, switch view to plain text mode 

Could you please come out with a solution for my problem.....?
javascript Code:
  1. t.text = (Number(a)+Number(b)).toString()
To copy to clipboard, switch view to plain text mode