65 : QRegularExpressionValidator( parent )
71 .arg( QString::number( decimal ) )
72 .arg( QLocale().negativeSign() )
73 .arg( QLocale().exponential() ) );
74 setRegularExpression( reg );
78 : QRegularExpressionValidator( parent )
79 , mMinimum( std::numeric_limits<qreal>::lowest() )
80 , mMaximum( std::numeric_limits<qreal>::max() )
84 .arg( QString::number( decimal ) )
85 .arg( QLocale().negativeSign() )
86 .arg( QLocale().exponential() ) );
87 setRegularExpression( reg );
151 double value = QLocale().toDouble( input, ok );
155 value = QLocale( QLocale::C ).toDouble( input, ok );
158 if ( ! *ok && !( QLocale().numberOptions() & QLocale::NumberOption::OmitGroupSeparator ) )
160 value = QLocale().toDouble( QString( input ).replace( QLocale().groupSeparator(), QString() ), ok );