66 : QRegularExpressionValidator( parent )
72 .arg( QString::number( decimal ) )
73 .arg( QLocale().negativeSign() )
74 .arg( QLocale().exponential() ) );
75 setRegularExpression( reg );
79 : QRegularExpressionValidator( parent )
80 , mMinimum( std::numeric_limits<qreal>::lowest() )
81 , mMaximum( std::numeric_limits<qreal>::max() )
85 .arg( QString::number( decimal ) )
86 .arg( QLocale().negativeSign() )
87 .arg( QLocale().exponential() ) );
88 setRegularExpression( reg );
152 double value = QLocale().toDouble( input, ok );
156 value = QLocale( QLocale::C ).toDouble( input, ok );
159 if ( ! *ok && !( QLocale().numberOptions() & QLocale::NumberOption::OmitGroupSeparator ) )
161 value = QLocale().toDouble( QString( input ).replace( QLocale().groupSeparator(), QString() ), ok );