Say I've got a QLineEdit and I need to retrieve the text, then convert it to a float for processing. How would I do that? The ways I've been trying so far always end up throwing compilation errors.
Say I've got a QLineEdit and I need to retrieve the text, then convert it to a float for processing. How would I do that? The ways I've been trying so far always end up throwing compilation errors.
So would that be something like:
double d = myLineEditName->text()->toDouble();
It's the syntax that I'm not getting.
Bookmarks