Qt 3 Support Members for QTextEditThe 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. Public Types
Public Functions
Public Slots
Signals
Member Type Documentation
|
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 API instead.
See also textCursor().
Use fontFamily() instead.
See also setFamily().
This is an overloaded member function, provided for convenience.
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.
This is an overloaded member function, provided for convenience.
Use the QTextCursor() class instead.
Use int(fontPointSize()+0.5) instead.
See also setPointSize().
Redoes the last operation.
If there is no operation to redo, i.e. there is no redo step in the undo/redo history, nothing happens.
See also undo().
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 edit's text. The text can be plain text or HTML and the text edit will try to guess the right format.
Use setHtml() or setPlainText() directly to avoid text edit's guessing.
See also text().
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().
Undoes the last operation.
If there is no operation to undo, i.e. there is no undo step in the undo/redo history, nothing happens.
See also redo().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.1 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com