use QStringRef.toFloat() if it is available.