I'd say that QString is a type. How could it be a member of textf?
textf->QString+"1"; is not supposed to do anything. An assignment (=) operator is required in order to change the content. Like so: textf->QString+="1"; // Isn't QString a type?
actually in .hpp file i declare temp 1 and temp 2 as a qstring so thats why it cannot take integer value. and instead of addition it append the numbers.. so i want to know how to convert string into integer in bb10.
if textf is NULL you cannot use it because it's invalid. What are you trying to do?
instead of addition, substraction, multiplication, division it apppend the two numbers..
I'd guess that temp1 and temp2 are strings. strings are not numbers. If you want numbers you have to convert the content of the string to a number using for instance toInt(). See:
Hey thanx @coder777,
I used to.Int() to convert string into integer but i didnt use setNum to again convert it into string at that time.
Now program is running.
Thnax alot.