Hello
The user of my qml app needs to enter an ip address;
I'm looking for a qml editbox (or text input,...) with
the dot already included and ip address validation.
Any ideas?
Thanks
Mut.
Hello
The user of my qml app needs to enter an ip address;
I'm looking for a qml editbox (or text input,...) with
the dot already included and ip address validation.
Any ideas?
Thanks
Mut.
You could use a TextInput or TextField with a RegExpValidator to restrict the general pattern, and then valdiate the values inside the pattern.
Cheers,
_
Thanks for the reply.
Could you be more precise. Any example code that you know?
There is an example for using an IntValidator right there in the documentation of TextInput's validator property.
A Google query for "qml textinput validator" returns this as its first hit.
Cheers,
_
Bookmarks