|
| | RichTextEditor (QWidget *parent=nullptr) |
| void | setDefaultFont (QFont font) |
| QToolBar * | createToolBar (QDesignerFormEditorInterface *core, QWidget *parent=nullptr) |
| QString | text (Qt::TextFormat format) const |
| bool | simplifyRichText () const |
| | RichTextEditor (QWidget *parent=nullptr) |
| void | setDefaultFont (QFont font) |
| QToolBar * | createToolBar (QDesignerFormEditorInterface *core, QWidget *parent=nullptr) |
| QString | text (Qt::TextFormat format) const |
| bool | simplifyRichText () const |
| | QTextEdit (QWidget *parent=nullptr) |
| | Constructs an empty QTextEdit with parent parent.
|
| | QTextEdit (const QString &text, QWidget *parent=nullptr) |
| | Constructs a QTextEdit with parent parent.
|
| virtual | ~QTextEdit () |
| | Destructor.
|
| void | setDocument (QTextDocument *document) |
| QTextDocument * | document () const |
| void | setPlaceholderText (const QString &placeholderText) |
| QString | placeholderText () const |
| void | setTextCursor (const QTextCursor &cursor) |
| | Sets the visible cursor.
|
| QTextCursor | textCursor () const |
| | Returns a copy of the QTextCursor that represents the currently visible cursor.
|
| bool | isReadOnly () const |
| void | setReadOnly (bool ro) |
| void | setTextInteractionFlags (Qt::TextInteractionFlags flags) |
| Qt::TextInteractionFlags | textInteractionFlags () const |
| qreal | fontPointSize () const |
| | Returns the point size of the font of the current format.
|
| QString | fontFamily () const |
| | Returns the font family of the current format.
|
| int | fontWeight () const |
| | Returns the font weight of the current format.
|
| bool | fontUnderline () const |
| | Returns true if the font of the current format is underlined; otherwise returns false.
|
| bool | fontItalic () const |
| | Returns true if the font of the current format is italic; otherwise returns false.
|
| QColor | textColor () const |
| | Returns the text color of the current format.
|
| QColor | textBackgroundColor () const |
| QFont | currentFont () const |
| | Returns the font of the current format.
|
| Qt::Alignment | alignment () const |
| | Returns the alignment of the current paragraph.
|
| void | mergeCurrentCharFormat (const QTextCharFormat &modifier) |
| | Merges the properties specified in modifier into the current character format by calling QTextCursor::mergeCharFormat on the editor's cursor.
|
| void | setCurrentCharFormat (const QTextCharFormat &format) |
| | Sets the char format that is be used when inserting new text to format by calling QTextCursor::setCharFormat() on the editor's cursor.
|
| QTextCharFormat | currentCharFormat () const |
| | Returns the char format that is used when inserting new text.
|
| AutoFormatting | autoFormatting () const |
| void | setAutoFormatting (AutoFormatting features) |
| bool | tabChangesFocus () const |
| void | setTabChangesFocus (bool b) |
| void | setDocumentTitle (const QString &title) |
| QString | documentTitle () const |
| bool | isUndoRedoEnabled () const |
| void | setUndoRedoEnabled (bool enable) |
| LineWrapMode | lineWrapMode () const |
| void | setLineWrapMode (LineWrapMode mode) |
| int | lineWrapColumnOrWidth () const |
| void | setLineWrapColumnOrWidth (int w) |
| QTextOption::WrapMode | wordWrapMode () const |
| | the mode QTextEdit will use when wrapping text by words
|
| void | setWordWrapMode (QTextOption::WrapMode policy) |
| bool | find (const QString &exp, QTextDocument::FindFlags options=QTextDocument::FindFlags()) |
| | Finds the next occurrence of the string, exp, using the given options.
|
| QString | toPlainText () const |
| | QString QTextEdit::toPlainText() const.
|
| QString | toHtml () const |
| void | ensureCursorVisible () |
| | Ensures that the cursor is visible by scrolling the text edit if necessary.
|
| virtual Q_INVOKABLE QVariant | loadResource (int type, const QUrl &name) |
| | Loads the resource specified by the given type and name.
|
| QMenu * | createStandardContextMenu () |
| | \reimp
|
| QMenu * | createStandardContextMenu (const QPoint &position) |
| QTextCursor | cursorForPosition (const QPoint &pos) const |
| | returns a QTextCursor at position pos (in viewport coordinates).
|
| QRect | cursorRect (const QTextCursor &cursor) const |
| | returns a rectangle (in viewport coordinates) that includes the cursor.
|
| QRect | cursorRect () const |
| | returns a rectangle (in viewport coordinates) that includes the cursor of the text edit.
|
| QString | anchorAt (const QPoint &pos) const |
| | Returns the reference of the anchor at position pos, or an empty string if no anchor exists at that point.
|
| bool | overwriteMode () const |
| void | setOverwriteMode (bool overwrite) |
| qreal | tabStopDistance () const |
| void | setTabStopDistance (qreal distance) |
| int | cursorWidth () const |
| void | setCursorWidth (int width) |
| bool | acceptRichText () const |
| void | setAcceptRichText (bool accept) |
| void | setExtraSelections (const QList< ExtraSelection > &selections) |
| | \variable QTextEdit::ExtraSelection::cursor A cursor that contains a selection in a QTextDocument
|
| QList< ExtraSelection > | extraSelections () const |
| void | moveCursor (QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor) |
| bool | canPaste () const |
| void | print (QPagedPaintDevice *printer) const |
| QVariant | inputMethodQuery (Qt::InputMethodQuery property) const override |
| | \reimp
|
| Q_INVOKABLE QVariant | inputMethodQuery (Qt::InputMethodQuery query, QVariant argument) const |
|
| 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...
|
| 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 bool | canInsertFromMimeData (const QMimeData *source) const |
| | This function returns true if the contents of the MIME data object, specified by source, can be decoded and inserted into the document.
|
| virtual void | insertFromMimeData (const QMimeData *source) |
| | This function inserts the contents of the MIME data object, specified by source, into the text edit at the current cursor position.
|
| 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 139 of file richtexteditor.cpp.