PythonQt.QtGui.QRegExpValidator · declarations 001
Back to PythonQt.QtGui.QRegExpValidator
changed
changed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QRegExpValidator.changed; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QRegExpValidator.destroyed; argument details are not documented.
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QRegExpValidator.objectNameChanged; argument details are not documented.
regExp
instance-attribute
regExp: QRegExp
Qt 5 reference:
regExp : QRegExp
This property holds the regular expression used for validation
By default, this property contains a regular expression with the pattern .* that
matches any string.
Access functions:
| const QRegExp \& | regExp() const |
|---|---|
| void | setRegExp(const QRegExp \&rx) |
Notifier signal:
| void | regExpChanged(const QRegExp \®Exp) |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qregexpvalidator.html#regExp
regExpChanged
regExpChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QRegExpValidator.regExpChanged; argument details are not documented.
setRegExp
setRegExp(rx: Any) -> None
X.setRegExp(rx)
Upstream PySide2 reference signatures (binding differences may apply):
setRegExp(self, rx: PySide2.QtCore.QRegExp) -> None
Source: https://doc.qt.io/archives/qt-5.15/qregexpvalidator.html#setRegExp
validate
validate(input: str, pos: int) -> Any
X.validate(input, pos)
Supplemental documentation: Qt 5 reference:
[override virtual] QValidator::State QRegExpValidator::validate(QString \&input, int \&pos) const
Reimplements: QValidator::validate(QString \&input, int \&pos) const.
Returns Acceptable if input is matched by the regular expression for this validator, Intermediate if it has matched partially (i.e. could be a valid match if additional valid characters are added), and Invalid if input is not matched.
Additionally, if input is not matched, the pos parameter is set to the length of the input parameter.
For example, if the regular expression is \w\d\d (word-character, digit, digit) then "A57" is Acceptable, "E5" is Intermediate, and "+9" is Invalid.
See also QRegExp::exactMatch().
Upstream PySide2 reference signatures (binding differences may apply):
validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State
Source: https://doc.qt.io/archives/qt-5.15/qregexpvalidator.html#validate