PythonQt.QtGui.QIntValidator · declarations 001
Back to PythonQt.QtGui.QIntValidator
bottom
instance-attribute
bottom: int
Qt 5 reference:
bottom : int
This property holds the validator's lowest acceptable value
By default, this property's value is derived from the lowest signed integer available (-2147483648).
Access functions:
| int | bottom() const |
|---|---|
| void | setBottom(int) |
Notifier signal:
| void | bottomChanged(int bottom) |
|---|---|
See also setRange().
Source: https://doc.qt.io/archives/qt-5.15/qintvalidator.html#bottom
bottomChanged
bottomChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QIntValidator.bottomChanged; argument details are not documented.
changed
changed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QIntValidator.changed; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QIntValidator.destroyed; argument details are not documented.
fixup
fixup(input: str) -> None
X.fixup(input)
Supplemental documentation: Qt 5 reference:
[override virtual] void QIntValidator::fixup(QString \&input) const
Reimplements: QValidator::fixup(QString \&input) const.
Upstream PySide2 reference signatures (binding differences may apply):
fixup(self, input: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qintvalidator.html#fixup
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QIntValidator.objectNameChanged; argument details are not documented.
setBottom
setBottom(arg__1: int) -> None
X.setBottom(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setBottom(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qintvalidator.html#setBottom
setRange
setRange(bottom: int, top: int) -> None
X.setRange(bottom, top)
Supplemental documentation: Qt 5 reference:
[virtual] void QIntValidator::setRange(int bottom, int top)
Sets the range of the validator to only accept integers between bottom and top inclusive.
Upstream PySide2 reference signatures (binding differences may apply):
setRange(self, bottom: int, top: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qintvalidator.html#setRange
setTop
setTop(arg__1: int) -> None
X.setTop(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setTop(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qintvalidator.html#setTop
top
instance-attribute
top: int
Qt 5 reference:
top : int
This property holds the validator's highest acceptable value
By default, this property's value is derived from the highest signed integer available (2147483647).
Access functions:
| int | top() const |
|---|---|
| void | setTop(int) |
Notifier signal:
| void | topChanged(int top) |
|---|---|
See also setRange().
Source: https://doc.qt.io/archives/qt-5.15/qintvalidator.html#top
topChanged
topChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QIntValidator.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 QIntValidator::validate(QString \&input, int \&pos) const
Reimplements: QValidator::validate(QString \&input, int \&pos) const.
Returns Acceptable if the input is an integer within the valid range. If input has at most as many digits as the top of the range, or is a prefix of an integer in the valid range, returns Intermediate. Otherwise, returns Invalid.
If the valid range consists of just positive integers (e.g., 32 to 100) and input is a negative integer, then Invalid is returned. (On the other hand, if the range consists of negative integers (e.g., -100 to -32) and input is a positive integer, then Intermediate is returned, because the user might be just about to type the minus (especially for right-to-left languages).
Similarly, if the valid range is between 46 and 53, then 41 and 59 will be evaluated as Intermediate, as otherwise the user wouldn't be able to change a value from 49 to 51.
int pos = 0;
s = "abc";
v.validate(s, pos); // returns Invalid
s = "5";
v.validate(s, pos); // returns Intermediate
s = "50";
v.validate(s, pos); // returns Acceptable
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/qintvalidator.html#validate