The validators seem like a qml "standard" way to do it, which also looks
cleaner because you can just bind the dialog's canAccept to anding of each
input's acceptable input.
You can naturally do whatever you please, if you feel that your solution is
better in some way. If you want to know why
errorHighlight: text.length == 0 is the simplest string validator. i
have no idea why you need more complex solutions for such small thing.
05.10.2014 01:00, sailfishmail пишет:
Why not? I doubt you will notice any performance issues.
No need to be over zealous about optimization, you're using
Why not? I doubt you will notice any performance issues.
No need to be over zealous about optimization, you're using qml for an
application anyways, not coding an OS or background service.
Although I agree that there should be greater variety of stock validators, for
simpler cases with string
You really need validators for text data? Adding complex RegExpValidator
just for handling empty state? Really?
05.10.2014 00:52, sailfishmail пишет:
I think the validator property will help you; search for "qml using validators" or
similar. Or http://qt-project.org/doc/qt-4.8/texthandling.htm
I think the validator property will help you; search for "qml using validators"
or similar. Or http://qt-project.org/doc/qt-4.8/texthandling.html and the
"acceptableInput" property of TextInput.
Andrey Kozhevnikov kirjoitti Sat Oct 04 2014 21:40:48 GMT+0300 (EEST):
> something like this: http://
Hello jolla developers!
I am wondering why the Image QML element does *not* fire the onDoubleClicked
event when placed inside the SilicaFlickable element.
Have a look at this example. With QT´s Flickable element (which I am not
suppose to use, of cause) the event is fired and with SilicaFlickab
something like this: http://pastebin.com/Vv0PcrJA
05.10.2014 00:14, Cernunnos Wynand пишет:
Hi,
I have the following code for a dialog which will only be accepted if it
has been completely filled out: http://pastebin.com/WUpHhxJh
I find this a bit cumbersome. Does anyone have suggestions or
im
Hi,
I have the following code for a dialog which will only be accepted if it
has been completely filled out: http://pastebin.com/WUpHhxJh
I find this a bit cumbersome. Does anyone have suggestions or
improvements?
Cernunnos
___
SailfishOS.org Devel mai