enthudrives
15th June 2010, 11:26
Hi everyone. I am new to qt programming.
I want to compute the average and display the output using a lineEdit.
I used
ui->lineEdit->setText(QString::number(avg));
This displays the output without decimals. How to display float in lineEdit?
Thanks in advance..
I want to compute the average and display the output using a lineEdit.
I used
ui->lineEdit->setText(QString::number(avg));
This displays the output without decimals. How to display float in lineEdit?
Thanks in advance..