Hi @all,

i have a QLineEdit and want the text converted to a double, so I do:
Qt Code:
  1. lineEdit->setText("123456789");
  2. QVariant val = lineEdit->text().toDouble();
  3. qDebug() << val;
  4. .
  5. .
  6. .
  7. lineEdit2->setText(val.toString());
To copy to clipboard, switch view to plain text mode 
Now the output would be: QVariant(double, 1.23457e+08)
And also the value in lineEdit2 is "1.23457e+08"

How can I avoid the exponentials?

Thanks in advance

Best Regards
NoRulez