Comment 13 for bug 1357548

Revision history for this message
Pat McGowan (pat-mcgowan) wrote : Re: [settings] Empty PIN/password/passphrase field appears to contain 4 characters

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
                }

            }