43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtWidgets/qframe.h>
45 #include <QtGui/qtextcursor.h>
46 #include <QtCore/qstring.h>
47 #include <QtCore/qmargins.h>
73 Q_PROPERTY(
int cursorPosition READ cursorPosition WRITE setCursorPosition)
75 Q_PROPERTY(
bool modified READ isModified WRITE setModified DESIGNABLE
false)
76 Q_PROPERTY(
bool hasSelectedText READ hasSelectedText)
78 Q_PROPERTY(
bool dragEnabled READ dragEnabled WRITE setDragEnabled)
79 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
80 Q_PROPERTY(
bool undoAvailable READ isUndoAvailable)
81 Q_PROPERTY(
bool redoAvailable READ isRedoAvailable)
82 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput)
85 Q_PROPERTY(
bool clearButtonEnabled READ isClearButtonEnabled WRITE setClearButtonEnabled)
101 QString placeholderText()
const;
102 void setPlaceholderText(
const QString &);
105 void setMaxLength(
int);
108 bool hasFrame()
const;
110 void setClearButtonEnabled(
bool enable);
111 bool isClearButtonEnabled()
const;
115 EchoMode echoMode()
const;
116 void setEchoMode(EchoMode);
118 bool isReadOnly()
const;
119 void setReadOnly(
bool);
121 #ifndef QT_NO_VALIDATOR
126 #if QT_CONFIG(completer)
134 int cursorPosition()
const;
135 void setCursorPosition(
int);
141 void cursorForward(
bool mark,
int steps = 1);
142 void cursorBackward(
bool mark,
int steps = 1);
143 void cursorWordForward(
bool mark);
144 void cursorWordBackward(
bool mark);
147 void home(
bool mark);
150 bool isModified()
const;
151 void setModified(
bool);
153 void setSelection(
int,
int);
154 bool hasSelectedText()
const;
156 int selectionStart()
const;
157 int selectionEnd()
const;
158 int selectionLength()
const;
160 bool isUndoAvailable()
const;
161 bool isRedoAvailable()
const;
163 void setDragEnabled(
bool b);
164 bool dragEnabled()
const;
170 void setInputMask(
const QString &inputMask);
171 bool hasAcceptableInput()
const;
174 void setTextMargins(
const QMargins &margins);
177 #if QT_CONFIG(action)
189 #ifndef QT_NO_CLIPBOARD
198 #ifndef QT_NO_CONTEXTMENU
199 QMenu *createStandardContextMenu();
221 #if QT_CONFIG(draganddrop)
222 void dragEnterEvent(QDragEnterEvent *)
override;
223 void dragMoveEvent(QDragMoveEvent *
e)
override;
224 void dragLeaveEvent(QDragLeaveEvent *
e)
override;
225 void dropEvent(QDropEvent *)
override;
228 #ifndef QT_NO_CONTEXTMENU
240 QRect cursorRect()
const;
246 friend class QAccessibleLineEdit;
248 #ifdef QT_KEYPAD_NAVIGATION
256 #if QT_CONFIG(completer)
259 #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 QEvent class is the base class of all event classes. Event objects contain event parameters.
The QFocusEvent class contains event parameters for widget focus events. \inmodule QtGui.
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 textEdited(const QString &)
void cursorPositionChanged(int, int)
void textChanged(const QString &)
The QMargins class defines the four margins of a rectangle.
The QMouseEvent class contains parameters that describe a mouse event.
virtual void timerEvent(QTimerEvent *event)
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
the background color on which the focus rectangle is being drawn
The QTimerEvent class contains parameters that describe a timer event.
The QValidator class provides validation of input text. \inmodule QtGui.
The QVariant class acts like a union for the most common Qt data types.
map insert("Paris", "France")
void textChanged(const QString &newText)
union Alignment_ Alignment
auto it unsigned count const
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
#define Q_DISABLE_COPY(Class)
QT_REQUIRE_CONFIG(lineedit)
GLboolean GLboolean GLboolean b
GLdouble GLdouble GLdouble GLdouble top
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
lineEdit setCompleter(completer)
QCompleter * completer
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent