I am trying to covert a string to a QString so I can display that QString on a QLineEdit or a QLabel. Here is the a piece of the code that I have so far
char buff[100];
fgets(buff, sizeof(buff), fp);
//the buff[0] and buff[1] are two char values that I add up to make a string
std::string latitude = std::string() + buff[0] + buff[1];
QString::fromStdString(latitude);
this->ui->lineEdit->setText(latitude);