i want to build simple calculator that add two numbers
i am using lineedit for taking input how can i use that value and convert it to some numeric form
for calculation
plz help
i want to build simple calculator that add two numbers
i am using lineedit for taking input how can i use that value and convert it to some numeric form
for calculation
plz help
ui->lineEdit->text().toInt()
additional you can define an input mask for the lineedit.
Last edited by ghal maraz; 9th March 2011 at 16:43. Reason: updated contents
sachinmcajnu (9th March 2011)
The QString documentation tells you everything you need. How to convert from text to number and how to convert from number to text.
Bookmarks