- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
- Direct Known Subclasses:
QTextBrowser
public class QTextEdit extends QAbstractScrollArea
Widget that is used to edit and display both plain and rich text
Java wrapper for Qt class QTextEdit
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTextEdit.AutoFormatting
QFlags type for enumQTextEdit.AutoFormattingFlag
static class
QTextEdit.AutoFormattingFlag
Java wrapper for Qt enum QTextEdit::AutoFormattingFlagstatic class
QTextEdit.ExtraSelection
QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a documentstatic class
QTextEdit.LineWrapMode
Java wrapper for Qt enum QTextEdit::LineWrapModeNested classes/interfaces inherited from class io.qt.widgets.QAbstractScrollArea
QAbstractScrollArea.SizeAdjustPolicy
Nested classes/interfaces inherited from class io.qt.widgets.QFrame
QFrame.Shadow, QFrame.Shape, QFrame.StyleMask
Nested classes/interfaces inherited from class io.qt.widgets.QWidget
QWidget.RenderFlag, QWidget.RenderFlags
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal1<@QtPrimitiveType Boolean>
copyAvailable
QObject.Signal1<QTextCharFormat>
currentCharFormatChanged
QObject.Signal0
cursorPositionChanged
QObject.Signal1<@QtPrimitiveType Boolean>
redoAvailable
QObject.Signal0
selectionChanged
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.QObject.Signal0
textChanged
QObject.Signal1<@QtPrimitiveType Boolean>
undoAvailable
Fields inherited from class io.qt.widgets.QWidget
customContextMenuRequested, windowIconChanged, windowIconTextChanged, windowTitleChanged
-
Constructor Summary
Constructors Modifier Constructor Description QTextEdit()
Overloaded constructor forQTextEdit(io.qt.widgets.QWidget)
withparent = null
.protected
QTextEdit(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QTextEdit(QtObject.QPrivateConstructor p)
Constructor for internal use only.QTextEdit(QWidget parent)
QTextEdit(String text)
Overloaded constructor forQTextEdit(java.lang.String, io.qt.widgets.QWidget)
withparent = null
.QTextEdit(String text, QWidget parent)
-
Method Summary
Methods inherited from class io.qt.widgets.QAbstractScrollArea
addScrollBarWidget, addScrollBarWidget, cornerWidget, eventFilter, horizontalScrollBar, horizontalScrollBarPolicy, maximumViewportSize, minimumSizeHint, paintEngine, scrollBarWidgets, scrollBarWidgets, setCornerWidget, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setSizeAdjustPolicy, setupViewport, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportMargins, setViewportMargins, sizeAdjustPolicy, sizeHint, verticalScrollBar, verticalScrollBarPolicy, viewport, viewportEvent, viewportMargins, viewportSizeHint
Methods inherited from class io.qt.widgets.QFrame
drawFrame, frameRect, frameShadow, frameShape, frameStyle, frameWidth, initStyleOption, lineWidth, midLineWidth, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth
Methods inherited from class io.qt.widgets.QWidget
acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, colorCount, contentsMargins, contentsRect, contextMenuPolicy, createWindowContainer, createWindowContainer, createWindowContainer, createWindowContainer, createWinId, cursor, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, effectiveWinId, ensurePolished, enterEvent, focusNextChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grab, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, heightMM, hide, hideEvent, initPainter, inputMethodHints, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseGrabber, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, previousInFocusChain, raise, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resize, resize, restoreGeometry, saveGeometry, screen, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlag, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, sharedPainter, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, toString, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, widthMM, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
copyAvailable
-
currentCharFormatChanged
-
cursorPositionChanged
-
redoAvailable
-
selectionChanged
-
textChanged
-
undoAvailable
-
-
Constructor Details
-
QTextEdit
public QTextEdit()Overloaded constructor for
QTextEdit(io.qt.widgets.QWidget)
withparent = null
. -
QTextEdit
-
QTextEdit
Overloaded constructor for
QTextEdit(java.lang.String, io.qt.widgets.QWidget)
withparent = null
. -
QTextEdit
-
QTextEdit
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QTextEdit
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
acceptRichText
-
alignment
-
anchorAt
-
append
-
autoFormatting
-
canPaste
-
clear
public final void clear() -
copy
public final void copy() -
createStandardContextMenu
-
createStandardContextMenu
-
currentCharFormat
-
currentFont
-
cursorForPosition
-
cursorRect
-
cursorRect
-
cursorWidth
-
cut
public final void cut()See QTextEdit::cut()
-
document
-
documentTitle
-
ensureCursorVisible
-
extraSelections
-
find
Overloaded function for
find(io.qt.core.QRegExp, io.qt.gui.QTextDocument.FindFlags)
. -
find
Overloaded function for
find(io.qt.core.QRegExp, io.qt.gui.QTextDocument.FindFlags)
withoptions = new io.qt.gui.QTextDocument.FindFlags(0)
. -
find
-
find
@QtUninvokable public final boolean find(QRegularExpression exp, QTextDocument.FindFlag... options)Overloaded function for
find(io.qt.core.QRegularExpression, io.qt.gui.QTextDocument.FindFlags)
. -
find
Overloaded function for
find(io.qt.core.QRegularExpression, io.qt.gui.QTextDocument.FindFlags)
withoptions = new io.qt.gui.QTextDocument.FindFlags(0)
. -
find
-
find
Overloaded function for
find(java.lang.String, io.qt.gui.QTextDocument.FindFlags)
. -
find
Overloaded function for
find(java.lang.String, io.qt.gui.QTextDocument.FindFlags)
withoptions = new io.qt.gui.QTextDocument.FindFlags(0)
. -
find
-
fontFamily
-
fontItalic
-
fontPointSize
-
fontUnderline
-
fontWeight
-
inputMethodQuery
-
insertHtml
-
insertPlainText
-
isReadOnly
-
isUndoRedoEnabled
-
lineWrapColumnOrWidth
-
lineWrapMode
-
mergeCurrentCharFormat
-
moveCursor
Overloaded function for
moveCursor(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode)
withmode = io.qt.gui.QTextCursor.MoveMode.MoveAnchor
. -
moveCursor
@QtUninvokable public final void moveCursor(QTextCursor.MoveOperation operation, QTextCursor.MoveMode mode) -
overwriteMode
-
paste
public final void paste() -
placeholderText
-
print
-
redo
public final void redo() -
scrollToAnchor
-
selectAll
public final void selectAll() -
setAcceptRichText
-
setAlignment
Overloaded function for
setAlignment(io.qt.core.Qt.Alignment)
. -
setAlignment
-
setAutoFormatting
Overloaded function for
setAutoFormatting(io.qt.widgets.QTextEdit.AutoFormatting)
. -
setAutoFormatting
-
setCurrentCharFormat
-
setCurrentFont
-
setCursorWidth
-
setDocument
-
setDocumentTitle
-
setExtraSelections
@QtUninvokable public final void setExtraSelections(Collection<QTextEdit.ExtraSelection> selections) -
setFontFamily
-
setFontItalic
public final void setFontItalic(boolean b) -
setFontPointSize
public final void setFontPointSize(double s) -
setFontUnderline
public final void setFontUnderline(boolean b) -
setFontWeight
public final void setFontWeight(int w) -
setHtml
-
setLineWrapColumnOrWidth
-
setLineWrapMode
-
setMarkdown
-
setOverwriteMode
-
setPlaceholderText
-
setPlainText
-
setReadOnly
-
setTabChangesFocus
-
setTabStopDistance
-
setTabStopWidth
Deprecated. -
setText
-
setTextBackgroundColor
-
setTextColor
-
setTextCursor
-
setTextInteractionFlags
Overloaded function for
setTextInteractionFlags(io.qt.core.Qt.TextInteractionFlags)
. -
setTextInteractionFlags
-
setUndoRedoEnabled
-
setWordWrapMode
-
tabChangesFocus
-
tabStopDistance
-
tabStopWidth
Deprecated. -
textBackgroundColor
-
textColor
-
textCursor
-
textInteractionFlags
-
toHtml
-
toMarkdown
Overloaded function for
toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
. -
toMarkdown
Overloaded function for
toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(3852)
. -
toMarkdown
-
toPlainText
-
undo
public final void undo() -
wordWrapMode
-
zoomIn
public final void zoomIn()Overloaded function for
zoomIn(int)
withrange = 1
. -
zoomIn
public final void zoomIn(int range) -
zoomInF
-
zoomOut
public final void zoomOut()Overloaded function for
zoomOut(int)
withrange = 1
. -
zoomOut
public final void zoomOut(int range) -
canInsertFromMimeData
-
changeEvent
- Overrides:
changeEvent
in classQFrame
-
contextMenuEvent
- Overrides:
contextMenuEvent
in classQAbstractScrollArea
-
createMimeDataFromSelection
-
doSetTextCursor
-
dragEnterEvent
- Overrides:
dragEnterEvent
in classQAbstractScrollArea
-
dragLeaveEvent
- Overrides:
dragLeaveEvent
in classQAbstractScrollArea
-
dragMoveEvent
- Overrides:
dragMoveEvent
in classQAbstractScrollArea
-
dropEvent
- Overrides:
dropEvent
in classQAbstractScrollArea
-
event
- Overrides:
event
in classQAbstractScrollArea
-
focusInEvent
- Overrides:
focusInEvent
in classQWidget
-
focusNextPrevChild
- Overrides:
focusNextPrevChild
in classQWidget
-
focusOutEvent
- Overrides:
focusOutEvent
in classQWidget
-
inputMethodEvent
- Overrides:
inputMethodEvent
in classQWidget
-
inputMethodQuery
- Overrides:
inputMethodQuery
in classQWidget
-
insertFromMimeData
-
keyPressEvent
- Overrides:
keyPressEvent
in classQAbstractScrollArea
-
keyReleaseEvent
- Overrides:
keyReleaseEvent
in classQWidget
-
loadResource
-
mouseDoubleClickEvent
- Overrides:
mouseDoubleClickEvent
in classQAbstractScrollArea
-
mouseMoveEvent
- Overrides:
mouseMoveEvent
in classQAbstractScrollArea
-
mousePressEvent
- Overrides:
mousePressEvent
in classQAbstractScrollArea
-
mouseReleaseEvent
- Overrides:
mouseReleaseEvent
in classQAbstractScrollArea
-
paintEvent
- Overrides:
paintEvent
in classQAbstractScrollArea
-
resizeEvent
- Overrides:
resizeEvent
in classQAbstractScrollArea
-
scrollContentsBy
- Overrides:
scrollContentsBy
in classQAbstractScrollArea
-
showEvent
-
timerEvent
- Overrides:
timerEvent
in classQObject
-
wheelEvent
- Overrides:
wheelEvent
in classQAbstractScrollArea
-