7#ifndef QT_NO_TEXTCONTROL
17#include "private/qtextdocumentlayout_p.h"
18#include "private/qabstracttextdocumentlayout_p.h"
20#include "private/qtextdocument_p.h"
23#include "private/qtextcursor_p.h"
24#include <QtCore/qloggingcategory.h>
38#include <private/qqmlglobal_p.h>
39#include <private/qquickdeliveryagent_p_p.h>
59 return layout->lineForTextPosition(relativePos);
67 interactionFlags(
Qt::TextEditorInteraction),
69 cursorIsFocusIndicator(
false),
71 lastSelectionState(
false),
72 ignoreAutomaticScrollbarAdjustement(
false),
76 cursorBlinkingEnabled(
false),
78 hadSelectionOnMousePress(
false),
79 wordSelectionEnabled(
false),
81 cursorRectangleChanged(
false),
83 selectByTouchDrag(
false),
84 imSelectionAfterPress(
false),
85 lastSelectionStart(-1),
91#if !QT_CONFIG(shortcut)
107#if QT_CONFIG(shortcut)
220 bool isNavigationEvent
228 emit q->cursorPositionChanged();
229 q->updateCursorRectangle(
true);
250 emit q->currentCharFormatChanged(
fmt);
287 formatCursor.beginEditBlock();
291 formatCursor.setCharFormat(charFormatForInsertion);
292 formatCursor.endEditBlock();
293#if QT_CONFIG(textmarkdownreader)
299#if QT_CONFIG(texthtmlparser)
313 emit q->textChanged();
318 q->updateCursorRectangle(
true);
320 emit q->cursorPositionChanged();
345 emit q->updateCursorRequest();
359 differenceSelection.setPosition(oldSelection.
position());
361 emit q->updateRequest();
364 if (!oldSelection.
isNull())
365 emit q->updateCursorRequest();
366 emit q->updateCursorRequest();
369 if (!oldSelection.
isNull())
370 emit q->updateRequest();
371 emit q->updateRequest();
379 if (forceEmitSelectionChanged) {
384 emit q->selectionChanged();
395 emit q->copyAvailable(current);
401 if (!forceEmitSelectionChanged) {
406 emit q->selectionChanged();
408 q->updateCursorRectangle(
true);
417#if QT_CONFIG(clipboard)
418void QQuickTextControlPrivate::setClipboardSelection()
432 if (someCursor.isCopyOf(
cursor)) {
433 emit q->cursorPositionChanged();
434 q->updateCursorRectangle(
true);
484 const int wordStartPos = curs.
position();
487 const QPointF blockCoordinates =
q->blockBoundingRect(curs.
block()).topLeft();
493 const qreal wordStartX =
line.cursorToX(curs.
position() - blockPos) + blockCoordinates.x();
497 const int wordEndPos = curs.
position();
500 if (otherLine.textStart() !=
line.textStart()
501 || wordEndPos == wordStartPos)
504 const qreal wordEndX =
line.cursorToX(curs.
position() - blockPos) + blockCoordinates.x();
518#if QT_CONFIG(clipboard)
519 setClipboardSelection();
548#if QT_CONFIG(clipboard)
549 setClipboardSelection();
558 d->repaintSelection();
559 const int oldCursorPos =
d->cursor.position();
560 d->doc->undo(&
d->cursor);
561 if (
d->cursor.position() != oldCursorPos)
569 d->repaintSelection();
570 const int oldCursorPos =
d->cursor.position();
571 d->doc->redo(&
d->cursor);
572 if (
d->cursor.position() != oldCursorPos)
581 d->cursor.removeSelectedText();
602 d->lastCharFormat =
d->cursor.charFormat();
627 const bool update =
d->cursorRectangleChanged || force;
628 d->cursorRectangleChanged =
false;
639 d->cursorIsFocusIndicator =
false;
640 const bool posChanged =
cursor.position() !=
d->cursor.position();
644 d->_q_updateCurrentCharFormatAndSelection();
646 d->repaintOldAndNewSelection(oldSelection);
657#if QT_CONFIG(clipboard)
659void QQuickTextControl::cut()
665 d->cursor.removeSelectedText();
668void QQuickTextControl::copy()
671 if (!
d->cursor.hasSelection())
688 const int selectionLength =
qAbs(
d->cursor.position() -
d->cursor.anchor());
690 d->selectionChanged(selectionLength !=
qAbs(
d->cursor.position() -
d->cursor.anchor()));
691 d->cursorIsFocusIndicator =
false;
698 t.
translate(coordinateOffset.
x(), coordinateOffset.
y());
712 d->keyPressEvent(
static_cast<QKeyEvent *
>(e));
715 d->keyReleaseEvent(
static_cast<QKeyEvent *
>(e));
719 d->mousePressEvent(ev,
transform.map(ev->position()));
723 d->mouseMoveEvent(ev,
transform.map(ev->position()));
727 d->mouseReleaseEvent(ev,
transform.map(ev->position()));
731 d->mouseDoubleClickEvent(ev,
transform.map(ev->position()));
737 d->hoverEvent(ev,
transform.map(ev->position()));
768 if (e->
timerId() ==
d->cursorBlinkTimer.timerId()) {
769 d->cursorOn = !
d->cursorOn;
808#if QT_CONFIG(shortcut)
812#if QT_CONFIG(clipboard)
813 setClipboardSelection();
817#if QT_CONFIG(clipboard)
854 blockFmt.setIndent(blockFmt.indent() - 1);
862#if QT_CONFIG(shortcut)
875#if QT_CONFIG(shortcut)
882#if QT_CONFIG(clipboard)
921 if (
q->isAcceptableInput(e)) {
946#if QT_CONFIG(clipboard)
947 setClipboardSelection();
953 q->updateCursorRectangle(
true);
964 const QPointF layoutPos =
q->blockBoundingRect(block).topLeft();
967 if (preeditCursor != 0) {
968 int preeditPos =
layout->preeditAreaPosition();
969 if (relativePos == preeditPos)
970 relativePos += preeditCursor;
971 else if (relativePos > preeditPos)
972 relativePos +=
layout->preeditAreaText().size();
979 if (
line.isValid()) {
983 if (relativePos <
line.textLength() -
line.textStart())
984 w =
line.cursorToX(relativePos + 1) -
x;
1053 if (cursorPos == -1) {
1076 q->updateCursorRectangle(
true);
1077 emit q->cursorPositionChanged();
1114 if (isPreediting()) {
1117 if (newCursorPos != selectionStartPos) {
1127 if (newCursorPos == -1)
1140 else if (!isPreediting())
1146 emit q->cursorPositionChanged();
1154 emit q->cursorPositionChanged();
1176#if QT_CONFIG(clipboard)
1177 setClipboardSelection();
1185 q->insertFromMimeData(md);
1194 emit q->cursorPositionChanged();
1195 q->updateCursorRectangle(
true);
1222 if (anchorPos != -1) {
1246 bool doEmit =
false;
1247 if (
line.isValid() &&
line.textLength()) {
1260#if QT_CONFIG(clipboard)
1261 setClipboardSelection();
1263 emit q->cursorPositionChanged();
1264 q->updateCursorRectangle(
true);
1278 if (isPreediting()) {
1282 if (cursorPos >= 0 && cursorPos <= layout->preeditAreaText().
size()) {
1309 bool forceSelectionChanged =
false;
1313 if (isGettingInput && textEditable) {
1340 forceSelectionChanged =
true;
1348 const int oldPreeditCursor = preeditCursor;
1351 if (isGettingInput) {
1353 emit q->preeditTextChanged();
1355 QVector<QTextLayout::FormatRange> overrides;
1363 preeditCursor =
a.start;
1371 o.length =
a.length;
1373 overrides.append(
o);
1377 layout->setFormats(overrides);
1386 emit q->cursorPositionChanged();
1387 q->updateCursorRectangle(oldPreeditCursor != preeditCursor || forceSelectionChanged || isGettingInput);
1406 return QVariant(
d->cursor.charFormat().font());
1416 return QVariant(
d->cursor.selectedText());
1430 int currentBlock = tmpCursor.blockNumber();
1432 if (tmpCursor.blockNumber() == currentBlock)
1444 int resultLen = localPos;
1446 int currentBlock = tmpCursor.blockNumber();
1448 if (tmpCursor.blockNumber() == currentBlock)
1451 resultLen += tmpCursor.block().length();
1473 emit q->updateRequest();
1485 emit q->selectionChanged();
1496 link =
q->anchorAt(
pos);
1500 emit q->linkHovered(link);
1515 return d->hasImState;
1521 return d->overwriteMode;
1527 if (
d->overwriteMode == overwrite)
1529 d->overwriteMode = overwrite;
1536 return d->cursorVisible;
1542 d->cursorVisible = visible;
1543 d->setBlinkingCursorEnabled(
d->cursorVisible
1564 return d->rectForPosition(
cursor.position());
1576 return d->hoveredLink;
1582 return d->doc->documentLayout()->anchorAt(
pos);
1588 return d->doc->documentLayout()->blockWithMarkerAt(
pos);
1594 d->acceptRichText = accept;
1602 d->_q_updateCurrentCharFormatAndSelection();
1604 d->repaintOldAndNewSelection(oldSelection);
1611#if QT_CONFIG(clipboard)
1624 d->cursorIsFocusIndicator =
b;
1634#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
1635void QQuickTextControl::setTouchDragSelectionEnabled(
bool enabled)
1652 if (
d->acceptRichText)
1658 return source->hasText();
1667 bool hasData =
false;
1669#if QT_CONFIG(texthtmlparser)
1676 }
else if (
source->hasHtml() &&
d->acceptRichText) {
1691 d->cursor.insertFragment(fragment);
1716 for (; !
it.atEnd(); ++
it) {
1718 const int fragmentPos = fragment.
position();
1719 if (fragmentPos <= cursorPos &&
1720 fragmentPos + fragment.
length() > cursorPos) {
1726 if (!linkFragment.atEnd()) {
1736 }
while (
it != block.
begin());
1739 for (
it = linkFragment; !
it.atEnd(); ++
it) {
1756 emit q_func()->linkActivated(href);
1760bool QQuickTextControlPrivate::isPreediting()
const
1769void QQuickTextControlPrivate::commitPreedit()
1785void QQuickTextControlPrivate::cancelPreedit()
1802 if (
flags ==
d->interactionFlags)
1804 d->interactionFlags =
flags;
1813 return d->interactionFlags;
1821#if QT_CONFIG(texthtmlparser)
1822QString QQuickTextControl::toHtml()
const
1828#if QT_CONFIG(textmarkdownwriter)
1829QString QQuickTextControl::toMarkdown()
const
1844 return d->doc->documentLayout()->hitTest(point, accuracy);
1850 return d->doc->documentLayout()->blockBoundingRect(block);
1861 return layout->preeditAreaText();
1872#if QT_CONFIG(textodfwriter)
1887void QQuickTextEditMimeData::setup()
const
1890#if QT_CONFIG(texthtmlparser)
1893#if QT_CONFIG(textodfwriter)
1897 writer.write(fragment);
1909#include "moc_qquicktextcontrol_p.cpp"
void start(int msec, QObject *obj)
\obsolete Use chrono overload instead.
void stop()
Stops the timer.
\inmodule QtCore \reentrant
The QClipboard class provides access to the window system clipboard.
void setMimeData(QMimeData *data, Mode mode=Clipboard)
Sets the clipboard data to src.
bool supportsSelection() const
Returns true if the clipboard supports mouse selection; otherwise returns false.
Mode
\keyword clipboard mode
static bool sendEvent(QObject *receiver, QEvent *event)
Sends event event directly to receiver receiver, using the notify() function.
virtual void setAccepted(bool accepted)
Type type() const
Returns the event type.
void ignore()
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
void accept()
Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
The QFocusEvent class contains event parameters for widget focus events.
bool gotFocus() const
Returns true if type() is QEvent::FocusIn; otherwise returns false.
Qt::FocusReason reason() const
Returns the reason for this focus event.
\reentrant \inmodule QtGui
int horizontalAdvance(const QString &, int len=-1) const
Returns the horizontal advance in pixels of the first len characters of text.
static QClipboard * clipboard()
Returns the object for interacting with the clipboard.
static QStyleHints * styleHints()
Returns the application's style hints.
static QInputMethod * inputMethod()
returns the input method.
The QKeyEvent class describes a key event.
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifier flags that existed immediately after the event occurred.
QString text() const
Returns the Unicode text that this key generated.
int key() const
Returns the code of the key that was pressed or released.
@ InsertParagraphSeparator
constexpr const char * data() const noexcept
bool isEmpty() const override
\reimp
QLayout * layout() override
\reimp
void remove(qsizetype i, qsizetype n=1)
void setData(const QString &mimetype, const QByteArray &data)
Sets the data associated with the MIME type given by mimeType to the specified data.
virtual QVariant retrieveData(const QString &mimetype, QMetaType preferredType) const
Returns a variant with the given type containing data for the MIME type specified by mimeType.
virtual QStringList formats() const
Returns a list of formats supported by the object.
static QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
virtual bool event(QEvent *event)
This virtual function receives events to an object and should return true if the event e was recogniz...
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
constexpr QPoint toPoint() const
Rounds the coordinates of this point to the nearest integer, and returns a QPoint object with the rou...
bool isNull() const noexcept
Returns true if both the x and y coordinates are set to 0.0 (ignoring the sign); otherwise returns fa...
static bool isEventFromMouseOrTouchpad(const QPointerEvent *ev)
QTextBlock blockWithMarkerUnderMousePress
bool cursorMoveKeyEvent(QKeyEvent *e)
void selectionChanged(bool forceEmitSelectionChanged=false)
void updateCursorFlashTime()
QBasicTimer cursorBlinkTimer
QTextCursor selectedBlockOnTripleClick
void setCursorPosition(const QPointF &pos)
void _q_updateCursorPosChanged(const QTextCursor &someCursor)
bool cursorIsFocusIndicator
bool cursorBlinkingEnabled
void mouseMoveEvent(QMouseEvent *event, const QPointF &pos)
void extendWordwiseSelection(int suggestedNewPosition, qreal mouseXPosition)
void keyReleaseEvent(QKeyEvent *e)
void focusEvent(QFocusEvent *e)
QRectF rectForPosition(int position) const
bool imSelectionAfterPress
void extendBlockwiseSelection(int suggestedNewPosition)
void setBlinkingCursorEnabled(bool enable)
bool hadSelectionOnMousePress
void hoverEvent(QHoverEvent *e, const QPointF &pos)
QTextCursor selectedWordOnDoubleClick
QTextCharFormat lastCharFormat
void setContent(Qt::TextFormat format, const QString &text)
void repaintOldAndNewSelection(const QTextCursor &oldSelection)
ulong timestampAtLastDoubleClick
bool cursorRectangleChanged
void activateLinkUnderCursor(QString href=QString())
void mouseDoubleClickEvent(QMouseEvent *event, const QPointF &pos)
void mousePressEvent(QMouseEvent *event, const QPointF &pos)
QQuickTextControlPrivate()
Qt::TextInteractionFlags interactionFlags
void updateCurrentCharFormat()
void keyPressEvent(QKeyEvent *e)
QString anchorOnMousePress
bool sendMouseEventToInputContext(QMouseEvent *event, const QPointF &pos)
void mouseReleaseEvent(QMouseEvent *event, const QPointF &pos)
void _q_updateCurrentCharFormatAndSelection()
bool wordSelectionEnabled
void setTextInteractionFlags(Qt::TextInteractionFlags flags)
bool overwriteMode() const
QTextDocument * document() const
virtual QRectF blockBoundingRect(const QTextBlock &block) const
bool event(QEvent *e) override
This virtual function receives events to an object and should return true if the event e was recogniz...
void contentsChange(int from, int charsRemoved, int charsAdded)
virtual void processEvent(QEvent *e, const QTransform &transform)
virtual bool canInsertFromMimeData(const QMimeData *source) const
QString anchorAt(const QPointF &pos) const
void cursorPositionChanged()
QString hoveredLink() const
void setAcceptRichText(bool accept)
void setDocument(QTextDocument *doc)
Qt::TextInteractionFlags textInteractionFlags() const
QTextBlock blockWithMarkerAt(const QPointF &pos) const
void setHtml(const QString &text)
QRectF anchorRect() const
QString preeditText() const
virtual QMimeData * createMimeDataFromSelection() const
void cursorRectangleChanged()
void overwriteModeChanged(bool overwriteMode)
bool cursorVisible() const
QTextCursor textCursor() const
void setCursorIsFocusIndicator(bool b)
void setCursorVisible(bool visible)
void moveCursor(QTextCursor::MoveOperation op, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
virtual ~QQuickTextControl()
void timerEvent(QTimerEvent *e) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
QRectF cursorRect() const
void setPlainText(const QString &text)
virtual void insertFromMimeData(const QMimeData *source)
QString toPlainText() const
void setOverwriteMode(bool overwrite)
void setTextCursor(const QTextCursor &cursor)
QQuickTextControl(QTextDocument *doc, QObject *parent=nullptr)
void setWordSelectionEnabled(bool enabled)
void setMarkdownText(const QString &text)
virtual int hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const
void updateCursorRectangle(bool force)
QVariant retrieveData(const QString &mimeType, QMetaType type) const override
Returns a variant with the given type containing data for the MIME type specified by mimeType.
QStringList formats() const override
Returns a list of formats supported by the object.
\inmodule QtCore\reentrant
Qt::MouseButton button() const
Returns the button that caused the event.
Qt::MouseButtons buttons() const
Returns the button state when the event was generated.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString mid(qsizetype position, qsizetype n=-1) const &
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
bool isNull() const
Returns true if this string is null; otherwise returns false.
qsizetype size() const noexcept
Returns the number of characters in this string.
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
QByteArray toUtf8() const &
void cursorFlashTimeChanged(int cursorFlashTime)
MarkerType marker() const
void setMarker(MarkerType marker)
iterator begin() const
Returns a text block iterator pointing to the beginning of the text block.
int length() const
Returns the length of the block in characters.
QTextBlockFormat blockFormat() const
Returns the QTextBlockFormat that describes block-specific properties.
bool isValid() const
Returns true if this text block is valid; otherwise returns false.
QTextBlock next() const
Returns the text block in the document after this block, or an empty text block if this is the last o...
QTextLayout * layout() const
Returns the QTextLayout that is used to lay out and display the block's contents.
int position() const
Returns the index of the block's first character within the document.
QString text() const
Returns the block's contents as plain text.
QString anchorHref() const
Returns the text format's hypertext link, or an empty string if none has been set.
static QTextCursorPrivate * getPrivate(QTextCursor *c)
\reentrant \inmodule QtGui
QTextBlockFormat blockFormat() const
Returns the block format of the block the cursor is in.
QTextCharFormat charFormat() const
Returns the format of the character immediately before the cursor position().
QTextBlock block() const
Returns the block that contains the cursor.
void beginEditBlock()
Indicates the start of a block of editing operations on the document that should appear as a single o...
bool atBlockStart() const
Returns true if the cursor is at the start of a block; otherwise returns false.
void setPosition(int pos, MoveMode mode=MoveAnchor)
Moves the cursor to the absolute position in the document specified by pos using a MoveMode specified...
int selectionStart() const
Returns the start of the selection or position() if the cursor doesn't have a selection.
bool movePosition(MoveOperation op, MoveMode=MoveAnchor, int n=1)
Moves the cursor by performing the given operation n times, using the specified mode,...
bool atBlockEnd() const
Returns true if the cursor is at the end of a block; otherwise returns false.
int anchor() const
Returns the anchor position; this is the same as position() unless there is a selection in which case...
void clearSelection()
Clears the current selection by setting the anchor to the cursor position.
bool isNull() const
Returns true if the cursor is null; otherwise returns false.
MoveMode
\value MoveAnchor Moves the anchor to the same position as the cursor itself.
void setBlockFormat(const QTextBlockFormat &format)
Sets the block format of the current block (or all blocks that are contained in the selection) to for...
void setCharFormat(const QTextCharFormat &format)
Sets the cursor's current character format to the given format.
bool visualNavigation() const
void removeSelectedText()
If there is a selection, its content is deleted; otherwise does nothing.
int selectionEnd() const
Returns the end of the selection or position() if the cursor doesn't have a selection.
void select(SelectionType selection)
Selects text in the document according to the given selection.
void insertText(const QString &text)
Inserts text at the current position, using the current character format.
QTextList * currentList() const
Returns the current list if the cursor position() is inside a block that is part of a list; otherwise...
void setVisualNavigation(bool b)
void insertBlock()
Inserts a new empty block at the cursor position() with the current blockFormat() and charFormat().
bool hasSelection() const
Returns true if the cursor contains a selection; otherwise returns false.
void endEditBlock()
Indicates the end of a block of editing operations on the document that should appear as a single ope...
MoveOperation
\value NoMove Keep the cursor where it is
void mergeBlockFormat(const QTextBlockFormat &modifier)
Modifies the block format of the current block (or all blocks that are contained in the selection) wi...
bool hasComplexSelection() const
Returns true if the cursor contains a selection that is not simply a range from selectionStart() to s...
void deletePreviousChar()
If there is no selected text, deletes the character before the current cursor position; otherwise del...
int position() const
Returns the absolute position of the cursor within the document.
void deleteChar()
If there is no selected text, deletes the character at the current cursor position; otherwise deletes...
QTextFrame * currentFrame() const
Returns a pointer to the current frame.
QString toPlainText() const
This function returns the same as toRawText(), but will replace some unicode characters with ASCII al...
bool isEmpty() const
Returns true if the fragment is empty; otherwise returns false.
static QTextDocumentFragment fromHtml(const QString &html, const QTextDocument *resourceProvider=nullptr)
static QTextDocumentFragment fromPlainText(const QString &plainText)
Returns a document fragment that contains the given plainText.
The QTextDocumentWriter class provides a format-independent interface for writing a QTextDocument to ...
\reentrant \inmodule QtGui
void setModified(bool m=true)
void contentsChange(int from, int charsRemoved, int charsAdded)
This signal is emitted whenever the document's content changes; for example, when text is inserted or...
void setHtml(const QString &html)
Replaces the entire contents of the document with the given HTML-formatted text in the html string.
QString toHtml() const
Returns a string containing an HTML representation of the document.
QAbstractTextDocumentLayout * documentLayout() const
Returns the document layout for this document.
virtual void clear()
Clears the document.
bool isUndoRedoEnabled() const
void setPageSize(const QSizeF &size)
void setUndoRedoEnabled(bool enable)
QUrl baseUrl
the base URL used to resolve relative resource URLs within the document.
QString toPlainText() const
Returns the plain text contained in the document.
QTextBlock findBlock(int pos) const
Returns the text block that contains the {pos}-th character.
void setPlainText(const QString &text)
Replaces the entire contents of the document with the given plain text.
void setBaseUrl(const QUrl &url)
QTextCharFormat toCharFormat() const
Returns this format as a character format.
void setLayoutDirection(Qt::LayoutDirection direction)
Sets the document's layout direction to the specified direction.
QTextCharFormat charFormat() const
Returns the text fragment's character format.
int length() const
Returns the number of characters in the text fragment.
int position() const
Returns the position of this text fragment in the document.
int lineCount() const
Returns the number of lines in this text layout.
QFont font() const
Returns the current font that is used for the layout, or a default font if none is set.
QString preeditAreaText() const
Returns the text that is inserted in the layout before editing occurs.
int timerId() const
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTime...
QUrl adjusted(FormattingOptions options) const
void textChanged(const QString &newText)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
@ TextSelectableByKeyboard
@ ActiveWindowFocusReason
static jboolean copy(JNIEnv *, jobject)
QList< QString > QStringList
Constructs a string list that contains the given string, str.
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
constexpr T qAbs(const T &t)
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum format
GLsizei GLsizei GLchar * source
GLuint GLenum GLenum transform
GLdouble GLdouble GLdouble GLdouble q
#define qmlobject_disconnect(Sender, SenderType, Signal, Receiver, ReceiverType, Method)
Disconnect Signal of Sender from Method of Receiver.
#define qmlobject_connect(Sender, SenderType, Signal, Receiver, ReceiverType, Method)
Connect Signal of Sender to Method of Receiver.
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
static QT_BEGIN_NAMESPACE QTextLine currentTextLine(const QTextCursor &cursor)
const int textCursorWidth
QLatin1StringView QLatin1String
#define QT_CONFIG(feature)
QVideoFrameFormat::PixelFormat fmt
static QTextLine currentTextLine(const QTextCursor &cursor)
if(qFloatDistance(a, b)<(1<< 7))
[0]
myObject disconnect()
[26]
\inmodule QtCore \reentrant