fwiw this seems to work everywhere although may be better solutions

            TextField {
                id: currentInput
                echoMode: TextInput.Password
                inputMethodHints: Qt.ImhNoAutoUppercase |
                                  Qt.ImhSensitiveData |
                                  Qt.ImhDigitsOnly

                maximumLength: 4
                validator: IntValidator{bottom: 0; top: 9999;}
                onTextChanged: {
                        confirmButton.enabled = text.length == 4
                }

            }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1357548

Title:
  [settings] Empty PIN/password/passphrase field appears to contain 4
  characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1357548/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to