PasswordEdit

A LineEdit that displays * in place of the actual characters.

Alas, Windows requires the window to be created differently to use this style, so it had to be a new class instead of a toggle on and off on an existing object.

Constructors

this
this(Widget parent)

Inherited Members

From EditableTextWidget

wordWrapEnabled
void wordWrapEnabled(bool enabled)

Enables or disables wrapping of long lines on word boundaries.

selectAll
void selectAll()

Selects all the text in the control, as if the user did it themselves. When the user types in a widget, the selected text is replaced with the new input, so this might be useful for putting in default text that is easy for the user to replace.

copy
void copy()
cut
void cut()
paste
void paste()

Basic clipboard operations.

undo
void undo()
content
string content [@property getter]
string content [@property setter]

Gets or sets the current content of the control, as a plain text string. Setting the content will reset the cursor position and overwrite any changes the user made.

addText
void addText(string txt)

Appends some text to the widget at the end, without affecting the user selection or cursor position.

Meta

History

Added January 24, 2021

Implemented on Linux on January 31, 2023.