i have one more problem with this Validator.
I want to change the validator regular exp by using state change. its able to set the other properties based on the states but not validator.
TextInput
{
id:qVirtualKeyboardTextInput
validator: RegExpValidator { regExp: /[0-9A-Fa-f.-]+/ }
text:EditText
}
states:[
State
{
name:binaryvalidator
when: binaryIOField ==true && decimalIOField=== false
PropertyChanges {
target: TextInput;
validator: IntValidator{bottom:0; top:1} // not working , tried with regExp alsio :(
}
},
State
{
name:decimalvalidator === true
when: decimalIOField
PropertyChanges {
target: TextInput;
//validator: IntValidator{bottom:0; top:9}
inputMask:"9" // able to set the input mask but not validator
}
}
]
TextInput
{
id:qVirtualKeyboardTextInput
validator: RegExpValidator { regExp: /[0-9A-Fa-f.-]+/ }
text:EditText
}
states:[
State
{
name:binaryvalidator
when: binaryIOField ==true && decimalIOField=== false
PropertyChanges {
target: TextInput;
validator: IntValidator{bottom:0; top:1} // not working , tried with regExp alsio :(
}
},
State
{
name:decimalvalidator === true
when: decimalIOField
PropertyChanges {
target: TextInput;
//validator: IntValidator{bottom:0; top:9}
inputMask:"9" // able to set the input mask but not validator
}
}
]
To copy to clipboard, switch view to plain text mode
can any body tell me why it is not taking. i am getting the error that "component is not ready"
Bookmarks