QML RegularExpressionValidator not working on android
-
Hi !
QML RegularExpressionValidator and IntValidator not working on android.
But it is work for Linux. How I can fix this?TextField { // TextInput { // validator: IntValidator {bottom: 1; top: 999999999} validator: RegularExpressionValidator { regularExpression: /[0-9]+/ } }
-
Hi !
QML RegularExpressionValidator and IntValidator not working on android.
But it is work for Linux. How I can fix this?TextField { // TextInput { // validator: IntValidator {bottom: 1; top: 999999999} validator: RegularExpressionValidator { regularExpression: /[0-9]+/ } }
-
Hi !
QML RegularExpressionValidator and IntValidator not working on android.
But it is work for Linux. How I can fix this?TextField { // TextInput { // validator: IntValidator {bottom: 1; top: 999999999} validator: RegularExpressionValidator { regularExpression: /[0-9]+/ } }
@Mihaill said in QML RegularExpressionValidator not working on android:
QML RegularExpressionValidator and IntValidator not working on android.
But it is work for Linux. How I can fix this?I think you have to remove "text prediction" to made it works on Android, following should work:
TextField { validator: RegularExpressionValidator { regularExpression: /[0-9]+/ } inputMethodHints: Qt.ImhNoPredictiveText }
-
@KroMignon said in QML RegularExpressionValidator not working on android:
TextField {
validator: RegularExpressionValidator { regularExpression: /[0-9]+/ }
inputMethodHints: Qt.ImhNoPredictiveText
}It is not work for android. I use Qt 6.2.2