-
Suggestion
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.1.0
-
None
I don't believe it safe to return zero on an empty to .toDouble() call. Many packages return either nans or throw some kind of an error.
In my case 0.0 is a perfectly good value to return, but I can't have an empty string.
double move_to_position = ui.txtBox->text().toDouble();//Weird stuff when txtBox is not empty.