36 Q_PROPERTY(
QColor selectionColor READ selectionColor WRITE setSelectionColor NOTIFY selectionColorChanged)
37 Q_PROPERTY(
QColor selectedTextColor READ selectedTextColor WRITE setSelectedTextColor NOTIFY selectedTextColorChanged)
39 Q_PROPERTY(
HAlignment horizontalAlignment READ hAlign WRITE setHAlign RESET resetHAlign NOTIFY horizontalAlignmentChanged)
40 Q_PROPERTY(
HAlignment effectiveHorizontalAlignment READ effectiveHAlign NOTIFY effectiveHorizontalAlignmentChanged)
44 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly NOTIFY readOnlyChanged)
45 Q_PROPERTY(
bool cursorVisible READ isCursorVisible WRITE setCursorVisible NOTIFY cursorVisibleChanged)
46 Q_PROPERTY(
int cursorPosition READ cursorPosition WRITE setCursorPosition NOTIFY cursorPositionChanged)
49 Q_PROPERTY(
bool overwriteMode READ overwriteMode WRITE setOverwriteMode NOTIFY overwriteModeChanged)
50 Q_PROPERTY(
int selectionStart READ selectionStart NOTIFY selectionStartChanged)
51 Q_PROPERTY(
int selectionEnd READ selectionEnd NOTIFY selectionEndChanged)
55#if QT_CONFIG(validator)
59 Q_PROPERTY(
Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints NOTIFY inputMethodHintsChanged)
61 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput NOTIFY acceptableInputChanged)
63 Q_PROPERTY(
bool activeFocusOnPress READ focusOnPress WRITE setFocusOnPress NOTIFY activeFocusOnPressChanged)
64 Q_PROPERTY(
QString passwordCharacter READ passwordCharacter WRITE setPasswordCharacter NOTIFY passwordCharacterChanged)
65 Q_PROPERTY(
int passwordMaskDelay READ passwordMaskDelay WRITE setPasswordMaskDelay RESET resetPasswordMaskDelay NOTIFY passwordMaskDelayChanged REVISION(2, 4))
68 Q_PROPERTY(
bool autoScroll READ autoScroll WRITE setAutoScroll NOTIFY autoScrollChanged)
69 Q_PROPERTY(
bool selectByMouse READ selectByMouse WRITE setSelectByMouse NOTIFY selectByMouseChanged)
70 Q_PROPERTY(
SelectionMode mouseSelectionMode READ mouseSelectionMode WRITE setMouseSelectionMode NOTIFY mouseSelectionModeChanged)
71 Q_PROPERTY(
bool persistentSelection READ persistentSelection WRITE setPersistentSelection NOTIFY persistentSelectionChanged)
72 Q_PROPERTY(
bool canPaste READ canPaste NOTIFY canPasteChanged)
73 Q_PROPERTY(
bool canUndo READ canUndo NOTIFY canUndoChanged)
74 Q_PROPERTY(
bool canRedo READ canRedo NOTIFY canRedoChanged)
75 Q_PROPERTY(
bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged)
80 Q_PROPERTY(
qreal padding READ padding WRITE setPadding RESET resetPadding NOTIFY paddingChanged REVISION(2, 6))
81 Q_PROPERTY(
qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged REVISION(2, 6))
82 Q_PROPERTY(
qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged REVISION(2, 6))
83 Q_PROPERTY(
qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged REVISION(2, 6))
84 Q_PROPERTY(
qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged REVISION(2, 6))
87#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
95 void componentComplete()
override;
152 RenderType renderType()
const;
153 void setRenderType(RenderType renderType);
166 QColor selectionColor()
const;
167 void setSelectionColor(
const QColor &
c);
169 QColor selectedTextColor()
const;
170 void setSelectedTextColor(
const QColor &
c);
172 HAlignment hAlign()
const;
173 void setHAlign(HAlignment align);
175 HAlignment effectiveHAlign()
const;
177 VAlignment vAlign()
const;
178 void setVAlign(VAlignment align);
180 WrapMode wrapMode()
const;
181 void setWrapMode(WrapMode
w);
183 bool isReadOnly()
const;
184 void setReadOnly(
bool);
186 bool isCursorVisible()
const;
187 void setCursorVisible(
bool on);
189 int cursorPosition()
const;
190 void setCursorPosition(
int cp);
192 QRectF cursorRectangle()
const;
194 int selectionStart()
const;
195 int selectionEnd()
const;
200 void setMaxLength(
int ml);
202#if QT_CONFIG(validator)
208 void setInputMask(
const QString &im);
210 EchoMode echoMode()
const;
211 void setEchoMode(EchoMode echo);
213 QString passwordCharacter()
const;
214 void setPasswordCharacter(
const QString &
str);
216 int passwordMaskDelay()
const;
217 void setPasswordMaskDelay(
int delay);
218 void resetPasswordMaskDelay();
226 bool overwriteMode() const;
227 void setOverwriteMode(
bool overwrite);
229 bool focusOnPress() const;
230 void setFocusOnPress(
bool);
232 bool autoScroll() const;
233 void setAutoScroll(
bool);
235 bool selectByMouse() const;
236 void setSelectByMouse(
bool);
241 bool persistentSelection() const;
242 void setPersistentSelection(
bool persist);
244 bool hasAcceptableInput() const;
252 QRectF clipRect()
const override;
254 bool canPaste()
const;
256 bool canUndo()
const;
257 bool canRedo()
const;
259 bool isInputMethodComposing()
const;
261 Qt::InputMethodHints inputMethodHints()
const;
262 void setInputMethodHints(Qt::InputMethodHints hints);
266 qreal contentWidth()
const;
267 qreal contentHeight()
const;
269 qreal padding()
const;
270 void setPadding(
qreal padding);
273 qreal topPadding()
const;
274 void setTopPadding(
qreal padding);
275 void resetTopPadding();
277 qreal leftPadding()
const;
278 void setLeftPadding(
qreal padding);
279 void resetLeftPadding();
281 qreal rightPadding()
const;
282 void setRightPadding(
qreal padding);
283 void resetRightPadding();
285 qreal bottomPadding()
const;
286 void setBottomPadding(
qreal padding);
287 void resetBottomPadding();
289 void invalidate()
override;
303 void selectionColorChanged();
304 void selectedTextColorChanged();
308 void wrapModeChanged();
309 void readOnlyChanged(
bool isReadOnly);
310 void cursorVisibleChanged(
bool isCursorVisible);
311 void cursorDelegateChanged();
312 void overwriteModeChanged(
bool overwriteMode);
313 void maximumLengthChanged(
int maximumLength);
314#if QT_CONFIG(validator)
315 void validatorChanged();
321 void displayTextChanged();
323 void activeFocusOnPressChanged(
bool activeFocusOnPress);
324 void autoScrollChanged(
bool autoScroll);
325 void selectByMouseChanged(
bool selectByMouse);
327 void persistentSelectionChanged();
328 void canPasteChanged();
329 void canUndoChanged();
330 void canRedoChanged();
331 void inputMethodComposingChanged();
332 void effectiveHorizontalAlignmentChanged();
333 void contentSizeChanged();
334 void inputMethodHintsChanged();
335 void renderTypeChanged();
343 void invalidateFontCaches();
344 void ensureActiveFocus(
Qt::FocusReason reason);
348#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
349 void setOldSelectionDefault();
352 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
359 void keyPressEvent(
QKeyEvent* ev)
override;
363 void mouseUngrabEvent()
override;
369 void updatePolish()
override;
376 bool isRightToLeft(
int start,
int end);
377#if QT_CONFIG(clipboard)
390 void selectionChanged();
392 void updateCursorRectangle(
bool scroll = true);
393 void q_canPasteChanged();
394 void q_updateAlignment();
395 void triggerPreprocess();
397#if QT_CONFIG(validator)
398 void q_validatorChanged();
static void getText(QString &text, QTextDocumentPrivate *priv, const QString &docText, int pos, int end)