|
enum | LineWrapMode { NoWrap
, WidgetWidth
, FixedPixelWidth
, FixedColumnWidth
} |
| \value NoWrap \value WidgetWidth \value FixedPixelWidth \value FixedColumnWidth More...
|
|
enum | AutoFormattingFlag { AutoNone = 0
, AutoBulletList = 0x00000001
, AutoAll = 0xffffffff
} |
| \value AutoNone Don't do any automatic formatting. More...
|
|
void | setFontPointSize (qreal s) |
| Sets the point size of the current format to s.
|
|
void | setFontFamily (const QString &fontFamily) |
| Sets the font family of the current format to fontFamily.
|
|
void | setFontWeight (int w) |
| Sets the font weight of the current format to the given weight, where the value used is in the range defined by the QFont::Weight enum.
|
|
void | setFontUnderline (bool b) |
| If underline is true, sets the current format to underline; otherwise sets the current format to non-underline.
|
|
void | setFontItalic (bool b) |
| If italic is true, sets the current format to italic; otherwise sets the current format to non-italic.
|
|
void | setTextColor (const QColor &c) |
| Sets the text color of the current format to c.
|
|
void | setTextBackgroundColor (const QColor &c) |
|
void | setCurrentFont (const QFont &f) |
| Sets the font of the current format to f.
|
|
void | setAlignment (Qt::Alignment a) |
| Sets the alignment of the current paragraph to a.
|
|
void | setPlainText (const QString &text) |
| Changes the text of the text edit to the string text.
|
|
void | setHtml (const QString &text) |
|
void | setText (const QString &text) |
|
void | cut () |
| Copies the selected text to the clipboard and deletes it from the text edit.
|
|
void | copy () |
| Copies any selected text to the clipboard.
|
|
void | paste () |
| Pastes the text from the clipboard into the text edit at the current cursor position.
|
|
void | undo () |
|
void | redo () |
|
void | clear () |
| Deletes all the text in the text edit.
|
|
void | selectAll () |
| Selects all text.
|
|
void | insertPlainText (const QString &text) |
| Convenience slot that inserts text at the current cursor position.
|
|
void | insertHtml (const QString &text) |
| Convenience slot that inserts text which is assumed to be of html formatting at the current cursor position.
|
|
void | append (const QString &text) |
| Appends a new paragraph with text to the end of the text edit.
|
|
void | scrollToAnchor (const QString &name) |
| Scrolls the text edit so that the anchor with the given name is visible; does nothing if the name is empty, or is already visible, or isn't found.
|
|
void | zoomIn (int range=1) |
| Zooms in on the text by making the base font size range points larger and recalculating all font sizes to be the new size.
|
|
void | zoomOut (int range=1) |
| Zooms out on the text by making the base font size range points smaller and recalculating all font sizes to be the new size.
|
|
void | textChanged () |
| This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.
|
|
void | undoAvailable (bool b) |
| This signal is emitted whenever undo operations become available (available is true) or unavailable (available is false).
|
|
void | redoAvailable (bool b) |
| This signal is emitted whenever redo operations become available (available is true) or unavailable (available is false).
|
|
void | currentCharFormatChanged (const QTextCharFormat &format) |
| This signal is emitted if the current character format has changed, for example caused by a change of the cursor position.
|
|
void | copyAvailable (bool b) |
| This signal is emitted when text is selected or de-selected in the text edit.
|
|
void | selectionChanged () |
| This signal is emitted whenever the selection changes.
|
|
void | cursorPositionChanged () |
| This signal is emitted whenever the position of the cursor changed.
|
|
virtual bool | event (QEvent *e) override |
|
virtual void | timerEvent (QTimerEvent *e) override |
|
virtual void | keyPressEvent (QKeyEvent *e) override |
| \reimp
|
|
virtual void | keyReleaseEvent (QKeyEvent *e) override |
| \reimp
|
|
virtual void | resizeEvent (QResizeEvent *e) override |
| \reimp
|
|
virtual void | paintEvent (QPaintEvent *e) override |
| This event handler can be reimplemented in a subclass to receive paint events passed in event.
|
|
virtual void | mousePressEvent (QMouseEvent *e) override |
| \reimp
|
|
virtual void | mouseMoveEvent (QMouseEvent *e) override |
| \reimp
|
|
virtual void | mouseReleaseEvent (QMouseEvent *e) override |
| \reimp
|
|
virtual void | mouseDoubleClickEvent (QMouseEvent *e) override |
| \reimp
|
|
virtual bool | focusNextPrevChild (bool next) override |
| \reimp
|
|
virtual void | contextMenuEvent (QContextMenuEvent *e) override |
| Shows the standard context menu created with createStandardContextMenu().
|
|
virtual void | focusInEvent (QFocusEvent *e) override |
| \reimp
|
|
virtual void | focusOutEvent (QFocusEvent *e) override |
| \reimp
|
|
virtual void | showEvent (QShowEvent *) override |
| \reimp
|
|
virtual void | changeEvent (QEvent *e) override |
| \reimp
|
|
virtual QMimeData * | createMimeDataFromSelection () const |
| This function returns a new MIME data object to represent the contents of the text edit's current selection.
|
|
virtual void | inputMethodEvent (QInputMethodEvent *) override |
| \reimp
|
|
| QTextEdit (QTextEditPrivate &dd, QWidget *parent) |
|
virtual void | scrollContentsBy (int dx, int dy) override |
| \reimp
|
|
virtual void | doSetTextCursor (const QTextCursor &cursor) |
|
void | zoomInF (float range) |
|
AutoFormatting | autoFormatting |
| the enabled set of auto formatting features
|
|
bool | tabChangesFocus |
| whether \uicontrol Tab changes focus or is accepted as input
|
|
QString | documentTitle |
| the title of the document parsed from the text.
|
|
bool | undoRedoEnabled |
| whether undo and redo are enabled.
|
|
LineWrapMode | lineWrapMode |
| the line wrap mode
|
|
int | lineWrapColumnOrWidth |
| the position (in pixels or columns depending on the wrap mode) where text will be wrapped
|
|
bool | readOnly |
| whether the text edit is read-only
|
|
QString | html |
| This property provides an HTML interface to the text of the text edit.
|
|
QString | plainText |
| the text editor's contents as plain text.
|
|
bool | overwriteMode |
| whether text entered by the user will overwrite existing text
|
|
qreal | tabStopDistance |
| the tab stop distance in pixels
|
|
bool | acceptRichText |
| whether the text edit accepts rich text insertions by the user
|
|
int | cursorWidth |
|
Qt::TextInteractionFlags | textInteractionFlags |
|
QTextDocument * | document |
| the underlying document of the text editor.
|
|
QString | placeholderText |
| the editor placeholder text
|
|
Definition at line 9 of file textedit.h.