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..