The QLineEdit widget is a simple line editor for inputting text. (details) (complete member list)
#include <qlined.h>
Inherits QWidget.
The default key bindings are described in keyPressEvent(); they cannot be customized except by inheriting the class.
To do:
Constructs a line editor with an empty edit buffer.
The cursor position is set to the start of the line, the maximum buffer size to 32767 characters, and the buffer contents to "".
The parent and name arguments are sent to the QWidget constructor.
Destroys the line editor.
Deletes the character on the left side of the text cursor and moves the cursor one position to the left.
See also: del().
Moves the cursor leftwards one character.
See also: cursorRight().
Moves the cursor rightwards one character.
See also: cursorLeft().
Deletes the character on the right side of the text cursor.
See also: backspace().
Moves the text cursor to the right end of the line.
See also: home().
.
.
Moves the text cursor to the left end of the line.
See also: end().
The key press event handler converts a key press to some line editor action.
If return or enter is pressed, the signal returnPressed will be emitted.
Here are the default key bindings:
All other keys with valid ASCII codes insert themselves into the line.
To do:
Returns the current maximum length of the text in the editor.
See also: setMaxLength().
.
.
.
.
Set the maximum length of the text in the editor. If the text is currently too long, it is chopped off at the limit.
See also: maxLength().
Sets the line editor text to text.
If necessary the text is truncated to fit maxLength().
See also: text().
Returns a pointer to the text currently in the line.
If you need to store the text, you should make a copy of it. This can
conveniently be done with a QString object:
QString s = lineEd->text(); // makes a copy and stores it in s
See also: setText().
This signal is emitted every time the text has changed. The argument is the new text.
.
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: