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)
39 Q_PROPERTY(
bool modified READ isModified WRITE setModified DESIGNABLE
false)
40 Q_PROPERTY(
bool hasSelectedText READ hasSelectedText)
42 Q_PROPERTY(
bool dragEnabled READ dragEnabled WRITE setDragEnabled)
43 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
44 Q_PROPERTY(
bool undoAvailable READ isUndoAvailable)
45 Q_PROPERTY(
bool redoAvailable READ isRedoAvailable)
46 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput)
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)
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();
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;
192#ifndef QT_NO_CONTEXTMENU
204 QRect cursorRect()
const;
210 friend class QAccessibleLineEdit;
212#ifdef QT_KEYPAD_NAVIGATION
220#if QT_CONFIG(completer)
223#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 is a combined button and popup 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 pressed.
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 pressed, or if the line edit loses focus and i...
EchoMode
This enum type describes how a line edit should display its contents.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
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")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent