The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
enum | CursorAction { MoveBackward, MoveForward, MoveWordBackward, MoveWordForward, ..., MovePageDown } |
enum | KeyboardAction { ActionBackspace, ActionDelete, ActionReturn, ActionKill, ActionWordBackspace, ActionWordDelete } |
QTextEdit ( QWidget * parent, const char * name ) | |
bool | bold () const |
QColor | color () const |
void | doKeyboardAction ( KeyboardAction action ) |
QString | family () const |
bool | find ( const QString & exp, bool cs, bool wo ) |
bool | hasSelectedText () const |
void | insert ( const QString & text ) |
bool | isModified () const |
bool | isRedoAvailable () const |
bool | isUndoAvailable () const |
bool | italic () const |
void | moveCursor ( CursorAction action, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor ) |
void | moveCursor ( CursorAction action, bool select ) |
int | pointSize () const |
void | redo () const |
QString | selectedText () const |
void | setBold ( bool b ) |
void | setFamily ( const QString & family ) |
void | setItalic ( bool i ) |
void | setPointSize ( int size ) |
void | setTextFormat ( Qt::TextFormat f ) |
void | setUnderline ( bool b ) |
void | sync () |
QString | text () const |
Qt::TextFormat | textFormat () const |
bool | underline () const |
void | undo () const |
void | setColor ( const QColor & color ) |
void | setModified ( bool m = true ) |
void | currentColorChanged ( const QColor & color ) |
void | currentFontChanged ( const QFont & font ) |
Constant | Value |
---|---|
QTextEdit::MoveBackward | 0 |
QTextEdit::MoveForward | 1 |
QTextEdit::MoveWordBackward | 2 |
QTextEdit::MoveWordForward | 3 |
QTextEdit::MoveUp | 4 |
QTextEdit::MoveDown | 5 |
QTextEdit::MoveLineStart | 6 |
QTextEdit::MoveLineEnd | 7 |
QTextEdit::MoveHome | 8 |
QTextEdit::MoveEnd | 9 |
QTextEdit::MovePageUp | 10 |
QTextEdit::MovePageDown | 11 |
Constant | Value |
---|---|
QTextEdit::ActionBackspace | 0 |
QTextEdit::ActionDelete | 1 |
QTextEdit::ActionReturn | 2 |
QTextEdit::ActionKill | 3 |
QTextEdit::ActionWordBackspace | 4 |
QTextEdit::ActionWordDelete | 5 |
Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.
Use fontWeight() >= QFont::Bold instead.
See also setBold().
Use textColor() instead.
See also setColor().
Use currentCharFormatChanged() instead.
Use currentCharFormatChanged() instead.
Executes keyboard action action.
Use the QTextCursor class instead.
See also textCursor().
Use fontFamily() instead.
See also setFamily().
Use the find() overload that takes a QTextDocument::FindFlags argument.
Use textCursor().hasSelection() instead.
Use insertPlainText() instead.
Use document()->isModified() instead.
Use document()->isRedoAvailable() instead.
Use document()->isUndoAvailable() instead.
Use fontItalic() instead.
See also setItalic().
Use the QTextCursor class instead.
Use the QTextCursor class instead.
Use int(fontPointSize()+0.5) instead.
See also setPointSize().
This is an overloaded function.
Use the non-const overload instead.
Use textCursor().selectedText() instead.
Use setFontWeight() instead.
See also bold().
Use setTextColor() instead.
See also color().
Use setFontFamily() instead.
See also family().
Use setFontItalic() instead.
See also italic().
Use document->setModified() instead.
See also isModified().
Use setFontPointSize() instead.
See also pointSize().
Sets the text format to format f.
See also textFormat().
Use setFontUnderline() instead.
See also underline().
Does nothing.
Returns all the text in the text edit as plain text.
See also setText().
Returns the text format.
See also setTextFormat().
Use fontUnderline() instead.
See also setUnderline().
This is an overloaded function.
Use the non-const overload instead.