Hi frns,
The below code is for reading values from text files and display it in the text box and i get some errors in the below code . kindly please help me out.. thanks in advance..

void MainWindow::slotTimer()
{
QFile file("Heartrate.txt");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
return;

QTextStream in(&file);
while (!in.atEnd())
{
QString line = in.readLine();
TEhr(line);// displays the value of heartrate in Textbox
}

}