FormPasswordFieldDelegate QML Type

A Form delegate that corresponds to a password field. More...

Import Statement: import org.kde.kirigamiaddons.formcard
Inherits:

AbstractFormDelegate

Properties

Signals

Methods

Detailed Description

FormCard.FormHeader {
    title: "Information"
}

FormCard.FormCard {
    FormCard.FormTextFieldDelegate {
        label: "Account name"
    }

    FormCard.FormPasswordFieldDelegate {
        label: "Password"
        statusMessage: "Password incorrect"
        status: Kirigami.MessageType.Error
        text: "666666666"
    }

    FormCard.FormPasswordFieldDelegate {
        label: "Password repeat"
        statusMessage: "Password match"
        text: "4242424242"
        status: Kirigami.MessageType.Positive
        echoMode: TextInput.Password
    }
}

Property Documentation

acceptableInput : bool

This property holds the acceptableInput of the internal TextField.


echoMode : enumeration

This property holds the echoMode of the internal TextField.

This consists of how the text inside the text field will be displayed to the user.

See also TextInput.echoMode.


fieldActiveFocus : bool

This hold the activeFocus state of the internal TextField.


inputMethodHints : enumeration

This property holds the inputMethodHints of the internal TextField.

This consists of hints on the expected content or behavior of the text field, be it sensitive data, in a date format, or whether the characters will be hidden, for example.

See also TextInput.inputMethodHints.


label : string [required]

A label containing primary text that appears above and to the left of the text field.


maximumLength : int

The maximum length of the text inside the TextField if maxLength > 0.


placeholderText : string

This property holds the placeholderText of the internal TextField.

This consists of secondary text shown by default on the text field if no text has been written in it.


readOnly : bool

This hold the readOnly state of the internal TextField.


showPasswordQuality : bool [default: false]

This property holds whether the password quality is shown.

This allows users to see whether their password is secure when choosing a new password.


status : var

This property holds the current status message type of the text field.

This consists of an inline message with a colorful background and an appropriate icon.

The status property will affect the color of statusMessage used.

Accepted values:

ConstantDescription
Kirigami.MessageType.Information(blue color)
Kirigami.MessageType.Positive(green color)
Kirigami.MessageType.Warning(orange color)
Kirigami.MessageType.Error(red color)

Default: Kirigami.MessageType.Information if statusMessage is set, nothing otherwise.

See also Kirigami.MessageType.


statusMessage : string [default: ""]

This property holds the current status message of the text field.

If this property is not set, no status will be shown.


validator : Validator

This property holds the validator of the internal TextField.


Signal Documentation

accepted()

This signal is emitted when the Return or Enter key is pressed.

Note that if there is a validator or inputMask set on the text input, the signal will only be emitted if the input is in an acceptable state.

Note: The corresponding handler is onAccepted.


editingFinished()

This signal is emitted when the Return or Enter key is pressed or the text input loses focus.

Note that if there is a validator or inputMask set on the text input and enter/return is pressed, this signal will only be emitted if the input follows the inputMask and the validator returns an acceptable state.

Note: The corresponding handler is onEditingFinished.


textEdited()

This signal is emitted whenever the text is edited.

Unlike textChanged(), this signal is not emitted when the text is changed programmatically, for example, by changing the value of the text property or by calling clear().

Note: The corresponding handler is onTextEdited.


Method Documentation

clear()

Clears the contents of the text input and resets partial text input from an input method.


insert(position, text)

Inserts text into the TextInput at position.


select(start, end)

Causes the text from start to end to be selected.


selectAll()

Causes all text to be selected.