Definition at line 70 of file qtextedit.h.
Classes
|
| struct
|
ExtraSelection |
Public Types
|
| enum |
LineWrapMode
{
NoWrap,
WidgetWidth,
FixedPixelWidth,
FixedColumnWidth } |
| enum |
AutoFormattingFlag
{
AutoNone = 0,
AutoBulletList = 0x00000001,
AutoAll = 0xffffffff } |
Public Slots
|
| void |
setFontPointSize
(qreal s) |
| void |
setFontFamily
(const QString
&fontFamily) |
| void |
setFontWeight
(int w) |
| void |
setFontUnderline
(bool b) |
| void |
setFontItalic
(bool b) |
| void |
setTextColor
(const QColor
&c) |
| void |
setTextBackgroundColor
(const QColor
&c) |
| void |
setCurrentFont
(const QFont
&f) |
| void |
setAlignment
(Qt::Alignment a) |
| void |
setPlainText
(const QString
&text) |
| void |
setHtml
(const QString
&text) |
| void |
setText
(const QString
&text) |
| void |
cut
() |
| void |
copy
() |
| void |
paste
() |
| void |
undo
() |
| void |
redo
() |
| void |
clear
() |
| void |
selectAll
() |
| void |
insertPlainText
(const QString
&text) |
| void |
insertHtml
(const QString
&text) |
| void |
append
(const QString
&text) |
| void |
scrollToAnchor
(const QString
&name) |
| void |
zoomIn
(int range=1) |
| void |
zoomOut
(int range=1) |
Signals
|
| void |
textChanged
() |
| void |
undoAvailable
(bool b) |
| void |
redoAvailable
(bool b) |
| void |
currentCharFormatChanged
(const QTextCharFormat
&format) |
| void |
copyAvailable
(bool b) |
| void |
selectionChanged
() |
| void |
cursorPositionChanged
() |
Public Member Functions
|
| |
QTextEdit
(QWidget
*parent=0) |
| |
QTextEdit
(const QString
&text, QWidget
*parent=0) |
|
virtual |
~QTextEdit
() |
| void |
setDocument
(QTextDocument
*document) |
| QTextDocument * |
document
() const |
| void |
setTextCursor
(const QTextCursor &cursor) |
| QTextCursor |
textCursor
() const |
| bool |
isReadOnly
() const |
| void |
setReadOnly
(bool ro) |
| void |
setTextInteractionFlags
(Qt::TextInteractionFlags flags) |
|
Qt::TextInteractionFlags |
textInteractionFlags
() const |
| qreal |
fontPointSize
() const |
| QString |
fontFamily
() const |
| int |
fontWeight
() const |
| bool |
fontUnderline
() const |
| bool |
fontItalic
() const |
| QColor |
textColor
() const |
| QColor |
textBackgroundColor
() const |
| QFont |
currentFont
() const |
|
Qt::Alignment |
alignment
() const |
| void |
mergeCurrentCharFormat
(const QTextCharFormat
&modifier) |
| void |
setCurrentCharFormat
(const QTextCharFormat
&format) |
| QTextCharFormat |
currentCharFormat
() const |
|
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 |
| void |
setWordWrapMode
(QTextOption::WrapMode
policy) |
| bool |
find
(const QString
&exp, QTextDocument::FindFlags options=0) |
| QString |
toPlainText
() const |
| QString |
toHtml
() const |
| void |
ensureCursorVisible
() |
| virtual
QVariant |
loadResource
(int type, const QUrl
&name) |
| QMenu * |
createStandardContextMenu
() |
| QMenu * |
createStandardContextMenu
(const QPoint
&position) |
| QTextCursor |
cursorForPosition
(const QPoint &pos)
const |
| QRect |
cursorRect
(const QTextCursor &cursor) const |
| QRect |
cursorRect
() const |
| QString |
anchorAt
(const QPoint &pos)
const |
| bool |
overwriteMode
() const |
| void |
setOverwriteMode
(bool overwrite) |
| int |
tabStopWidth
() const |
| void |
setTabStopWidth
(int width) |
| int |
cursorWidth
() const |
| void |
setCursorWidth
(int width) |
| bool |
acceptRichText
() const |
| void |
setAcceptRichText
(bool accept) |
| void |
setExtraSelections
(const QList<
ExtraSelection
> &selections) |
| QList< ExtraSelection
> |
extraSelections
() const |
| void |
moveCursor
(QTextCursor::MoveOperation
operation, QTextCursor::MoveMode
mode=QTextCursor::MoveAnchor) |
| bool |
canPaste
() const |
| void |
print
(QPrinter *printer)
const |
Protected Member Functions
|
| virtual
bool |
event
(QEvent *e) |
| virtual
void |
timerEvent
(QTimerEvent
*e) |
| virtual
void |
keyPressEvent
(QKeyEvent *e) |
| virtual
void |
keyReleaseEvent
(QKeyEvent *e) |
| virtual
void |
resizeEvent
(QResizeEvent
*e) |
| virtual
void |
paintEvent
(QPaintEvent
*e) |
| virtual
void |
mousePressEvent
(QMouseEvent
*e) |
| virtual
void |
mouseMoveEvent
(QMouseEvent
*e) |
| virtual
void |
mouseReleaseEvent
(QMouseEvent
*e) |
| virtual
void |
mouseDoubleClickEvent
(QMouseEvent
*e) |
| virtual
bool |
focusNextPrevChild
(bool next) |
| virtual
void |
contextMenuEvent
(QContextMenuEvent *e) |
| virtual
void |
dragEnterEvent
(QDragEnterEvent *e) |
| virtual
void |
dragLeaveEvent
(QDragLeaveEvent *e) |
| virtual
void |
dragMoveEvent
(QDragMoveEvent *e) |
| virtual
void |
dropEvent
(QDropEvent
*e) |
| virtual
void |
focusInEvent
(QFocusEvent
*e) |
| virtual
void |
focusOutEvent
(QFocusEvent
*e) |
| virtual
void |
showEvent
(QShowEvent
*) |
| virtual
void |
changeEvent
(QEvent *e) |
| virtual
void |
wheelEvent
(QWheelEvent
*e) |
| virtual
QMimeData
* |
createMimeDataFromSelection
() const |
| virtual
bool |
canInsertFromMimeData
(const QMimeData
*source) const |
| virtual
void |
insertFromMimeData
(const QMimeData
*source) |
| virtual
void |
inputMethodEvent
(QInputMethodEvent *) |
| QVariant |
inputMethodQuery
(Qt::InputMethodQuery
property) const |
| |
QTextEdit
(QTextEditPrivate &dd, QWidget *parent) |
| virtual
void |
scrollContentsBy
(int dx, int dy) |
Properties
|
|
AutoFormatting |
autoFormatting |
| bool |
tabChangesFocus |
| QString |
documentTitle |
| bool |
undoRedoEnabled |
| LineWrapMode |
lineWrapMode |
| int |
lineWrapColumnOrWidth |
| bool |
readOnly |
| QString |
html |
| QString |
plainText |
| bool |
overwriteMode |
| int |
tabStopWidth |
| bool |
acceptRichText |
| int |
cursorWidth |
|
Qt::TextInteractionFlags |
textInteractionFlags |
Friends
|
| class |
QTextDocument |
| class |
QTextControl |