7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qframe.h>
9#include <QtGui/qtextcursor.h>
10#include <QtCore/qstring.h>
11#include <QtCore/qmargins.h>
37 Q_PROPERTY(
int cursorPosition READ cursorPosition WRITE setCursorPosition)
42 Q_PROPERTY(
bool dragEnabled READ dragEnabled WRITE setDragEnabled)
43 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
48 Q_PROPERTY(
Qt::CursorMoveStyle cursorMoveStyle READ cursorMoveStyle WRITE setCursorMoveStyle)
49 Q_PROPERTY(
bool clearButtonEnabled READ isClearButtonEnabled WRITE setClearButtonEnabled)
65 QString placeholderText()
const;
66 void setPlaceholderText(
const QString &);
69 void setMaxLength(
int);
72 bool hasFrame()
const;
74 void setClearButtonEnabled(
bool enable);
75 bool isClearButtonEnabled()
const;
79 EchoMode echoMode()
const;
80 void setEchoMode(EchoMode);
82 bool isReadOnly()
const;
83 void setReadOnly(
bool);
85#ifndef QT_NO_VALIDATOR
90#if QT_CONFIG(completer)
95 QSize sizeHint()
const override;
96 QSize minimumSizeHint()
const override;
98 int cursorPosition()
const;
99 void setCursorPosition(
int);
105 void cursorForward(
bool mark,
int steps = 1);
106 void cursorBackward(
bool mark,
int steps = 1);
107 void cursorWordForward(
bool mark);
108 void cursorWordBackward(
bool mark);
111 void home(
bool mark);
114 bool isModified()
const;
115 void setModified(
bool);
118 bool hasSelectedText()
const;
120 int selectionStart()
const;
121 int selectionEnd()
const;
122 int selectionLength()
const;
124 bool isUndoAvailable()
const;
125 bool isRedoAvailable()
const;
127 void setDragEnabled(
bool b);
128 bool dragEnabled()
const;
134 void setInputMask(
const QString &inputMask);
135 bool hasAcceptableInput()
const;
138 void setTextMargins(
const QMargins &margins);
153#ifndef QT_NO_CLIPBOARD
162#ifndef QT_NO_CONTEXTMENU
163 QMenu *createStandardContextMenu();
179 void mouseDoubleClickEvent(
QMouseEvent *)
override;
180 void keyPressEvent(
QKeyEvent *)
override;
181 void keyReleaseEvent(
QKeyEvent *)
override;
185#if QT_CONFIG(draganddrop)
186 void dragEnterEvent(QDragEnterEvent *)
override;
187 void dragMoveEvent(QDragMoveEvent *e)
override;
188 void dragLeaveEvent(QDragLeaveEvent *e)
override;
189 void dropEvent(QDropEvent *)
override;
191 void changeEvent(
QEvent *)
override;
192#ifndef QT_NO_CONTEXTMENU
204 QRect cursorRect()
const;
210 friend class QAccessibleLineEdit;
212#ifdef QT_KEYPAD_NAVIGATION
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
The QAction class provides an abstraction for user commands that can be added to different user inter...
The QComboBox widget combines a button with a dropdown list.
The QCompleter class provides completions based on an item model.
The QDateTimeEdit class provides a widget for editing dates and times.
The QFocusEvent class contains event parameters for widget focus events.
The QIcon class provides scalable icons in different modes and states.
The QKeyEvent class describes a key event.
The QLineEdit widget is a one-line text editor.
void selectionChanged()
This signal is emitted whenever the selection changes.
void textEdited(const QString &)
This signal is emitted whenever the text is edited.
void returnPressed()
This signal is emitted when the Return or Enter key is used.
void cursorPositionChanged(int, int)
This signal is emitted whenever the cursor moves.
ActionPosition
This enum type describes how a line edit should display the action widgets to be added.
void textChanged(const QString &)
This signal is emitted whenever the text changes.
void editingFinished()
This signal is emitted when the Return or Enter key is used, or if the line edit loses focus and its ...
EchoMode
This enum type describes how a line edit should display its contents.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
\variable QStyleOptionFocusRect::backgroundColor
The QValidator class provides validation of input text.
void textChanged(const QString &newText)
cache insert(employee->id(), employee)
Combined button and popup list for selecting options.
static jboolean cut(JNIEnv *, jobject)
static jboolean copy(JNIEnv *, jobject)
static jboolean paste(JNIEnv *, jobject)
static jboolean setSelection(JNIEnv *, jobject, jint start, jint end)
static jboolean selectAll(JNIEnv *, jobject)
GLboolean GLboolean GLboolean b
GLdouble GLdouble GLdouble GLdouble top
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
lineEdit setCompleter(completer)
QCompleter * completer
[0]
insertRed setText("insert red text")