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:
onClicked: { t.text = StringHelper.apple(????????????????); }To copy to clipboard, switch view to plain text mode
Could you please come out with a solution for my problem.....?javascript Code:
t.text = (Number(a)+Number(b)).toString()To copy to clipboard, switch view to plain text mode
Bookmarks