PythonQt.QtGui.QDoubleValidator · declarations 001
Back to PythonQt.QtGui.QDoubleValidator
Acceptable
instance-attribute
Acceptable: Any
Intermediate
instance-attribute
Intermediate: Any
Notation
instance-attribute
Notation: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
StandardNotation
instance-attribute
StandardNotation: Any
bottom
instance-attribute
bottom: float
Qt 5 reference:
bottom : double
This property holds the validator's minimum acceptable value
By default, this property contains a value of -infinity.
Access functions:
| double | bottom() const |
|---|---|
| void | setBottom(double) |
Notifier signal:
| void | bottomChanged(double bottom) |
|---|---|
See also setRange().
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#bottom
bottomChanged
bottomChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.bottomChanged; argument details are not documented.
changed
changed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.changed; argument details are not documented.
decimals
instance-attribute
decimals: int
Qt 5 reference:
decimals : int
This property holds the validator's maximum number of digits after the decimal point
By default, this property contains a value of 1000.
Access functions:
| int | decimals() const |
|---|---|
| void | setDecimals(int) |
Notifier signal:
| void | decimalsChanged(int decimals) |
|---|---|
See also setRange().
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#decimals
decimalsChanged
decimalsChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.decimalsChanged; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.destroyed; argument details are not documented.
fixup
fixup(arg__1: Any) -> Any
X.fixup(arg__1)
locale
locale() -> Any
X.locale() -> PythonQt.QtCore.QLocale
notation
instance-attribute
notation: Any
Qt 5 reference:
notation : Notation
This property holds the notation of how a string can describe a number
By default, this property is set to ScientificNotation.
This property was introduced in Qt 4.3.
Access functions:
| QDoubleValidator::Notation | notation() const |
|---|---|
| void | setNotation(QDoubleValidator::Notation) |
Notifier signal:
| void | notationChanged(QDoubleValidator::Notation notation) |
|---|---|
See also Notation.
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#notation
notationChanged
notationChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.notationChanged; argument details are not documented.
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.objectNameChanged; argument details are not documented.
setBottom
setBottom(arg__1: float) -> None
X.setBottom(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setBottom(self, arg__1: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#setBottom
setDecimals
setDecimals(arg__1: int) -> None
X.setDecimals(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setDecimals(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#setDecimals
setNotation
setNotation(arg__1: Any) -> None
X.setNotation(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setNotation(self, arg__1: PySide2.QtGui.QDoubleValidator.Notation) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#setNotation
setRange
setRange(bottom: float, top: float, decimals: int) -> None
X.setRange(bottom, top, decimals)
Supplemental documentation: Qt 5 reference:
[virtual] void QDoubleValidator::setRange(double minimum, double maximum, int decimals \= 0)
Sets the validator to accept doubles from minimum to maximum inclusive, with at most decimals digits after the decimal point.
Upstream PySide2 reference signatures (binding differences may apply):
setRange(self, bottom: float, top: float, decimals: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#setRange
setTop
setTop(arg__1: float) -> None
X.setTop(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setTop(self, arg__1: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#setTop
top
instance-attribute
top: float
Qt 5 reference:
top : double
This property holds the validator's maximum acceptable value
By default, this property contains a value of infinity.
Access functions:
| double | top() const |
|---|---|
| void | setTop(double) |
Notifier signal:
| void | topChanged(double top) |
|---|---|
See also setRange().
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#top
topChanged
topChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleValidator.topChanged; argument details are not documented.
validate
validate(arg__1: str, arg__2: int) -> Any
X.validate(arg__1, arg__2)
Supplemental documentation: Qt 5 reference:
[override virtual] QValidator::State QDoubleValidator::validate(QString \&input, int \&pos) const
Reimplements: QValidator::validate(QString \&input, int \&pos) const.
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. is empty.
Returns Invalid if the input is not a double or with too many digits after the decimal point.
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.
Upstream PySide2 reference signatures (binding differences may apply):
validate(self, arg__1: str, arg__2: int) -> PySide2.QtGui.QValidator.State
Source: https://doc.qt.io/archives/qt-5.15/qdoublevalidator.html#validate