96    void setMode( Mode mode );
 
  103    QString toPlainText() 
const;
 
  110    QString toHtml() 
const;
 
  122    QTextDocument *
document() { 
return mTextEdit->document(); }
 
  129    QTextCursor 
textCursor()
 const { 
return mTextEdit->textCursor(); }
 
  136    void setTextCursor( 
const QTextCursor &cursor ) { mTextEdit->setTextCursor( cursor ); }
 
  145    void setText( 
const QString &text );
 
  162    void focusInEvent( QFocusEvent *event ) 
override;
 
  165    void textRemoveFormat();
 
  166    void textRemoveAllFormat();
 
  168    void textUnderline();
 
  169    void textStrikeout();
 
  171    void textSize( 
const QString &p );
 
  172    void textLink( 
bool checked );
 
  173    void textStyle( 
int index );
 
  176    void listBullet( 
bool checked );
 
  177    void listOrdered( 
bool checked );
 
  178    void slotCurrentCharFormatChanged( 
const QTextCharFormat &format );
 
  179    void slotCursorPositionChanged();
 
  180    void slotClipboardDataChanged();
 
  181    void increaseIndentation();
 
  182    void decreaseIndentation();
 
  184    void editSource( 
bool enabled );
 
  187    void mergeFormatOnWordOrSelection( 
const QTextCharFormat &format );
 
  188    void fontChanged( 
const QFont &f );
 
  189    void fgColorChanged( 
const QColor &
c );
 
  190    void bgColorChanged( 
const QColor &
c );
 
  191    void list( 
bool checked, QTextListFormat::Style style );
 
  192    void indent( 
int delta );
 
  194    Mode mMode = Mode::QTextDocument;
 
  196    int mFontSizeH1 = 18;
 
  197    int mFontSizeH2 = 16;
 
  198    int mFontSizeH3 = 14;
 
  199    int mFontSizeH4 = 12;
 
  203      ParagraphStandard = 0,
 
  211    QComboBox *mParagraphStyleCombo = 
nullptr;
 
  212    QComboBox *mFontSizeCombo = 
nullptr;
 
  218    QPointer<QTextList> mLastBlockList;
 
  219    QString mMonospaceFontFamily;
 
 
A widget for editing rich text documents, with support for user controlled formatting of text and ins...
 
QTextCursor textCursor() const
Returns a reference to the text cursor.
 
Mode mode() const
Returns the widget's mode, which defines which formatting options are exposed in the widget.
 
void setTextCursor(const QTextCursor &cursor)
Sets the current text cursor.
 
void textChanged()
Emitted when the text contents are changed.
 
QTextEdit * textEdit()
Returns the widget's QTextEditor control.
 
QTextDocument * document()
Returns a reference to the QTextDocument shown in the widget.
 
Handles rendering text using rich formatting options, including drop shadows, buffers and background ...