![]()  | 
wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions | 
 | 
The QwwRichTextEdit widget provides a drop-in replacement for QTextEdit that contains a toolbar for editing rich text data. More...
#include <QwwRichTextEdit>
This class is not part of the Qt GUI Framework Edition.
Inherits QTextEdit.
| enum | Action { BoldAction, ItalicAction, UnderlineAction, LeftAlignAction, ..., FontSizeAction } | 
| enum | Option { NoOptions, Style, Alignment, FontFamily, FontSize, Color } | 
| flags | Options | 
| QwwRichTextEdit ( QWidget * parent = 0 ) | |
| Options | options () const | 
| QAction * | toolBarAction ( Action act ) const | 
| void | changeAlignment ( QAction * a ) | 
| void | setBold ( bool v ) | 
| void | setColor ( const QColor & c ) | 
| void | setFont ( const QFont & f ) | 
| void | setItalic ( bool v ) | 
| void | setList ( bool v ) | 
| void | setOptions ( Options opt ) | 
| void | setUnderline ( bool v ) | 
| void | updateCurrentBlockFormat () | 
| void | updateCurrentCharFormat ( const QTextCharFormat & fmt ) | 
The QwwRichTextEdit widget provides a drop-in replacement for QTextEdit that contains a toolbar for editing rich text data.
| Constant | Value | Description | 
|---|---|---|
| QwwRichTextEdit::BoldAction | 0 | Makes the text bold | 
| QwwRichTextEdit::ItalicAction | 1 | Makes the text italic | 
| QwwRichTextEdit::UnderlineAction | 2 | Makes the text underlined | 
| QwwRichTextEdit::LeftAlignAction | 3 | Makes the text left aligned | 
| QwwRichTextEdit::RightAlignAction | 4 | Makes the text right aligned | 
| QwwRichTextEdit::AlignCenterAction | 5 | Makes the text aligned to the centre | 
| QwwRichTextEdit::JustifyAction | 6 | Makes the text justified | 
| QwwRichTextEdit::ColorAction | 7 | Changes the color of the text | 
| QwwRichTextEdit::FontFamilyAction | 8 | Changes the font family of the text | 
| QwwRichTextEdit::FontSizeAction | 9 | Changes the font size of the text | 
| Constant | Value | Description | 
|---|---|---|
| QwwRichTextEdit::NoOptions | 0x0 | No options are set | 
| QwwRichTextEdit::Style | 0x01 | Text style | 
| QwwRichTextEdit::Alignment | 0x02 | Item alignment | 
| QwwRichTextEdit::FontFamily | 0x04 | Font family | 
| QwwRichTextEdit::FontSize | 0x08 | Font size | 
| QwwRichTextEdit::Color | 0x10 | Text color | 
The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.
This property holds this property holds the active set of options.
Access functions:
| Options | options () const | 
| void | setOptions ( Options opt ) | 
Constructs a rich text edit with a given parent
Changes alignment of the text to the one specified by action a
Changes the bold attribute of the selected text to v
Changes the color of the selected text to c
Changes the font of the selected text to f
Changes the italic attribute of the selected text to v
Changes the list attribute of the selected text to v
Changes the underline attribute of the selected text to v
Returns the QAction object associated with action act
Updates the format of the selected text
Updates actions to reflect the format specified by fmt
| Copyright © 2007-2010 Witold Wysota | Trademarks | wwWidgets 1.0.0  |