QDoubleValidator Class Reference
|
Константа | Значение | Описание |
---|---|---|
QDoubleValidator::StandardNotation | 0 | The string is written as a standard number (i.e. 0.015). |
QDoubleValidator::ScientificNotation | 1 | The string is written in scientific form. It may have an exponent part(i.e. 1.5E-2). |
Данное перечисление было введено в Qt 4.3.
This property holds the validator's minimum acceptable value.
By default, this property contains a value of -infinity.
Функции доступа:
See also setRange().
This property holds the validator's maximum number of digits after the decimal point.
By default, this property contains a value of 1000.
Функции доступа:
See also setRange().
This property holds the notation of how a string can describe a number.
By default, this property is set to ScientificNotation.
Это свойство было введено в Qt 4.3.
Функции доступа:
See also Notation.
This property holds the validator's maximum acceptable value.
By default, this property contains a value of infinity.
Функции доступа:
See also setRange().
Constructs a validator object with a parent object that accepts any double.
Constructs a validator object with a parent object. This validator will accept doubles from bottom to top inclusive, with up to decimals digits after the decimal point.
Destroys the validator.
Sets the validator to accept doubles from minimum to maximum inclusive, with at most decimals digits after the decimal point.
Returns Acceptable if the string input contains a double that is within the valid range and is in the correct format.
Returns Intermediate if input contains a double that is outside the range or is in the wrong format; e.g. with too many digits after the decimal point or is empty.
Returns Invalid if the input is not a double.
Note: If the valid range consists of just positive doubles (e.g. 0.0 to 100.0) and input is a negative double then Invalid is returned. If notation() is set to StandardNotation, and the input contains more digits before the decimal point than a double in the valid range may have, Invalid is returned. If notation() is ScientificNotation, and the input is not in the valid range, Intermediate is returned. The value may yet become valid by changing the exponent.
By default, the pos parameter is not used by this validator.
Reimplemented from QValidator.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.5.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |