Get the value from a QLineEdit
I figured it out:
QString XMAX=ui->lineEdit->text();
xMax=XMAX.toDouble();
Or
std::stod(ui->lineEdit->text().toStdString());
but watch out for the encoding.
I figured it out:
QString XMAX=ui->lineEdit->text();
xMax=XMAX.toDouble();
Or
std::stod(ui->lineEdit->text().toStdString());
but watch out for the encoding.