Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
31b972b12db4497f1c3ba1762d784c7315e75b62
Description
Javascript has a RegExp object, which should be usable in places (like QRegExpValidator) which require a QRegExp. Currently the below snippet does not work in QML, when someone with a javascript background would like it to.
TextInput { id: strInput;
validator: QRegExpValidator {
regExp: /[a-zA-z]
/
}
}
the specific error was 'validators.qml:18: Unable to assign null to QRegExp'.
This isn't a bug because the documentation doesn't say that this should work - but if it is not scheduled to be implemented soon the documentation should probably mention that it doesn't work.
Attachments
Issue Links
- depends on
-
QTBUG-9367 Regular Expressions are not handled correctly in QML.
- Closed