QTextEdit Class Reference
[QtGui module]
Inherits QAbstractScrollArea.
Inherited by QTextBrowser.
Types
Methods
- __init__ (self, QWidget parent = None)
- __init__ (self, QString, QWidget parent = None)
- bool acceptRichText (self)
- Qt.Alignment alignment (self)
- QString anchorAt (self, QPoint)
- append (self, QString)
- AutoFormatting autoFormatting (self)
- bool canInsertFromMimeData (self, QMimeData)
- bool canPaste (self)
- changeEvent (self, QEvent)
- clear (self)
- contextMenuEvent (self, QContextMenuEvent)
- copy (self)
- QMimeData createMimeDataFromSelection (self)
- QMenu createStandardContextMenu (self)
- QMenu createStandardContextMenu (self, QPoint)
- QTextCharFormat currentCharFormat (self)
- QFont currentFont (self)
- QTextCursor cursorForPosition (self, QPoint)
- QRect cursorRect (self, QTextCursor)
- QRect cursorRect (self)
- int cursorWidth (self)
- cut (self)
- QTextDocument document (self)
- QString documentTitle (self)
- dragEnterEvent (self, QDragEnterEvent)
- dragLeaveEvent (self, QDragLeaveEvent)
- dragMoveEvent (self, QDragMoveEvent)
- dropEvent (self, QDropEvent)
- ensureCursorVisible (self)
- bool event (self, QEvent)
- list-of-QTextEdit.ExtraSelection extraSelections (self)
- bool find (self, QString, QTextDocument.FindFlags options = 0)
- focusInEvent (self, QFocusEvent)
- bool focusNextPrevChild (self, bool)
- focusOutEvent (self, QFocusEvent)
- QString fontFamily (self)
- bool fontItalic (self)
- float fontPointSize (self)
- bool fontUnderline (self)
- int fontWeight (self)
- inputMethodEvent (self, QInputMethodEvent)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery)
- insertFromMimeData (self, QMimeData)
- insertHtml (self, QString)
- insertPlainText (self, QString)
- bool isReadOnly (self)
- bool isUndoRedoEnabled (self)
- keyPressEvent (self, QKeyEvent)
- keyReleaseEvent (self, QKeyEvent)
- int lineWrapColumnOrWidth (self)
- LineWrapMode lineWrapMode (self)
- QVariant loadResource (self, int, QUrl)
- mergeCurrentCharFormat (self, QTextCharFormat)
- mouseDoubleClickEvent (self, QMouseEvent)
- mouseMoveEvent (self, QMouseEvent)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- moveCursor (self, QTextCursor.MoveOperation, QTextCursor.MoveMode mode = QTextCursor.MoveAnchor)
- bool overwriteMode (self)
- paintEvent (self, QPaintEvent)
- paste (self)
- print (self, QPrinter printer)
- print_ (self, QPrinter)
- redo (self)
- resizeEvent (self, QResizeEvent)
- scrollContentsBy (self, int, int)
- scrollToAnchor (self, QString)
- selectAll (self)
- setAcceptRichText (self, bool)
- setAlignment (self, Qt.Alignment)
- setAutoFormatting (self, AutoFormatting)
- setCurrentCharFormat (self, QTextCharFormat)
- setCurrentFont (self, QFont)
- setCursorWidth (self, int)
- setDocument (self, QTextDocument)
- setDocumentTitle (self, QString)
- setExtraSelections (self, list-of-QTextEdit.ExtraSelection)
- setFontFamily (self, QString)
- setFontItalic (self, bool)
- setFontPointSize (self, float)
- setFontUnderline (self, bool)
- setFontWeight (self, int)
- setHtml (self, QString)
- setLineWrapColumnOrWidth (self, int)
- setLineWrapMode (self, LineWrapMode)
- setOverwriteMode (self, bool)
- setPlainText (self, QString)
- setReadOnly (self, bool)
- setTabChangesFocus (self, bool)
- setTabStopWidth (self, int)
- setText (self, QString)
- setTextBackgroundColor (self, QColor)
- setTextColor (self, QColor)
- setTextCursor (self, QTextCursor)
- setTextInteractionFlags (self, Qt.TextInteractionFlags)
- setUndoRedoEnabled (self, bool)
- setWordWrapMode (self, QTextOption.WrapMode)
- showEvent (self, QShowEvent)
- bool tabChangesFocus (self)
- int tabStopWidth (self)
- QColor textBackgroundColor (self)
- QColor textColor (self)
- QTextCursor textCursor (self)
- Qt.TextInteractionFlags textInteractionFlags (self)
- timerEvent (self, QTimerEvent)
- QString toHtml (self)
- QString toPlainText (self)
- undo (self)
- wheelEvent (self, QWheelEvent)
- QTextOption.WrapMode wordWrapMode (self)
- zoomIn (self, int range = 1)
- zoomOut (self, int range = 1)
Qt Signals
Detailed Description
Type Documentation
QTextEdit.AutoFormattingFlag
QTextEdit.LineWrapMode
Method Documentation
QTextEdit.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QTextEdit.__init__ (self, QString, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QTextEdit.acceptRichText (self)
Qt.Alignment QTextEdit.alignment (self)
QString QTextEdit.anchorAt (self, QPoint)
QTextEdit.append (self, QString)
AutoFormatting QTextEdit.autoFormatting (self)
bool QTextEdit.canInsertFromMimeData (self, QMimeData)
bool QTextEdit.canPaste (self)
QTextEdit.changeEvent (self, QEvent)
QTextEdit.clear (self)
This method is also a Qt slot with the C++ signature void clear().
QTextEdit.contextMenuEvent (self, QContextMenuEvent)
QTextEdit.copy (self)
This method is also a Qt slot with the C++ signature void copy().
QMimeData QTextEdit.createMimeDataFromSelection (self)
QMenu QTextEdit.createStandardContextMenu (self)
QMenu QTextEdit.createStandardContextMenu (self, QPoint)
QTextCharFormat QTextEdit.currentCharFormat (self)
QFont QTextEdit.currentFont (self)
QTextCursor QTextEdit.cursorForPosition (self, QPoint)
QRect QTextEdit.cursorRect (self)
int QTextEdit.cursorWidth (self)
QTextEdit.cut (self)
This method is also a Qt slot with the C++ signature void cut().
QString QTextEdit.documentTitle (self)
QTextEdit.dragEnterEvent (self, QDragEnterEvent)
QTextEdit.dragLeaveEvent (self, QDragLeaveEvent)
QTextEdit.dragMoveEvent (self, QDragMoveEvent)
QTextEdit.dropEvent (self, QDropEvent)
QTextEdit.ensureCursorVisible (self)
bool QTextEdit.event (self, QEvent)
list-of-QTextEdit.ExtraSelection QTextEdit.extraSelections (self)
bool QTextEdit.find (self, QString, QTextDocument.FindFlags options = 0)
QTextEdit.focusInEvent (self, QFocusEvent)
bool QTextEdit.focusNextPrevChild (self, bool)
QTextEdit.focusOutEvent (self, QFocusEvent)
QString QTextEdit.fontFamily (self)
bool QTextEdit.fontItalic (self)
float QTextEdit.fontPointSize (self)
bool QTextEdit.fontUnderline (self)
int QTextEdit.fontWeight (self)
QTextEdit.inputMethodEvent (self, QInputMethodEvent)
QVariant QTextEdit.inputMethodQuery (self, Qt.InputMethodQuery)
QTextEdit.insertFromMimeData (self, QMimeData)
QTextEdit.insertHtml (self, QString)
This method is also a Qt slot with the C++ signature void insertHtml(const QString&).
QTextEdit.insertPlainText (self, QString)
This method is also a Qt slot with the C++ signature void insertPlainText(const QString&).
bool QTextEdit.isReadOnly (self)
bool QTextEdit.isUndoRedoEnabled (self)
QTextEdit.keyPressEvent (self, QKeyEvent)
QTextEdit.keyReleaseEvent (self, QKeyEvent)
int QTextEdit.lineWrapColumnOrWidth (self)
LineWrapMode QTextEdit.lineWrapMode (self)
QVariant QTextEdit.loadResource (self, int, QUrl)
QTextEdit.mergeCurrentCharFormat (self, QTextCharFormat)
QTextEdit.mouseDoubleClickEvent (self, QMouseEvent)
QTextEdit.mouseMoveEvent (self, QMouseEvent)
QTextEdit.mousePressEvent (self, QMouseEvent)
QTextEdit.mouseReleaseEvent (self, QMouseEvent)
bool QTextEdit.overwriteMode (self)
QTextEdit.paintEvent (self, QPaintEvent)
QTextEdit.paste (self)
This method is also a Qt slot with the C++ signature void paste().
QTextEdit.print (self, QPrinter printer)
QTextEdit.print_ (self, QPrinter)
QTextEdit.redo (self)
This method is also a Qt slot with the C++ signature void redo().
QTextEdit.resizeEvent (self, QResizeEvent)
QTextEdit.scrollContentsBy (self, int, int)
QTextEdit.scrollToAnchor (self, QString)
This method is also a Qt slot with the C++ signature void scrollToAnchor(const QString&).
QTextEdit.selectAll (self)
This method is also a Qt slot with the C++ signature void selectAll().
QTextEdit.setAcceptRichText (self, bool)
QTextEdit.setAlignment (self, Qt.Alignment)
This method is also a Qt slot with the C++ signature void setAlignment(Qt::Alignment).
QTextEdit.setAutoFormatting (self, AutoFormatting)
QTextEdit.setCurrentCharFormat (self, QTextCharFormat)
QTextEdit.setCurrentFont (self, QFont)
This method is also a Qt slot with the C++ signature void setCurrentFont(const QFont&).
QTextEdit.setCursorWidth (self, int)
QTextEdit.setDocument (self, QTextDocument)
QTextEdit.setDocumentTitle (self, QString)
QTextEdit.setExtraSelections (self, list-of-QTextEdit.ExtraSelection)
QTextEdit.setFontFamily (self, QString)
This method is also a Qt slot with the C++ signature void setFontFamily(const QString&).
QTextEdit.setFontItalic (self, bool)
This method is also a Qt slot with the C++ signature void setFontItalic(bool).
QTextEdit.setFontPointSize (self, float)
This method is also a Qt slot with the C++ signature void setFontPointSize(qreal).
QTextEdit.setFontUnderline (self, bool)
This method is also a Qt slot with the C++ signature void setFontUnderline(bool).
QTextEdit.setFontWeight (self, int)
This method is also a Qt slot with the C++ signature void setFontWeight(int).
QTextEdit.setHtml (self, QString)
This method is also a Qt slot with the C++ signature void setHtml(const QString&).
QTextEdit.setLineWrapColumnOrWidth (self, int)
QTextEdit.setLineWrapMode (self, LineWrapMode)
QTextEdit.setOverwriteMode (self, bool)
QTextEdit.setPlainText (self, QString)
This method is also a Qt slot with the C++ signature void setPlainText(const QString&).
QTextEdit.setReadOnly (self, bool)
QTextEdit.setTabChangesFocus (self, bool)
QTextEdit.setTabStopWidth (self, int)
QTextEdit.setText (self, QString)
This method is also a Qt slot with the C++ signature void setText(const QString&).
QTextEdit.setTextBackgroundColor (self, QColor)
This method is also a Qt slot with the C++ signature void setTextBackgroundColor(const QColor&).
QTextEdit.setTextColor (self, QColor)
This method is also a Qt slot with the C++ signature void setTextColor(const QColor&).
QTextEdit.setTextCursor (self, QTextCursor)
QTextEdit.setUndoRedoEnabled (self, bool)
QTextEdit.showEvent (self, QShowEvent)
bool QTextEdit.tabChangesFocus (self)
int QTextEdit.tabStopWidth (self)
QColor QTextEdit.textBackgroundColor (self)
QColor QTextEdit.textColor (self)
QTextCursor QTextEdit.textCursor (self)
QTextEdit.timerEvent (self, QTimerEvent)
QString QTextEdit.toHtml (self)
QString QTextEdit.toPlainText (self)
QTextEdit.undo (self)
This method is also a Qt slot with the C++ signature void undo().
QTextEdit.wheelEvent (self, QWheelEvent)
QTextEdit.zoomIn (self, int range = 1)
This method is also a Qt slot with the C++ signature void zoomIn(int = 1).
QTextEdit.zoomOut (self, int range = 1)
This method is also a Qt slot with the C++ signature void zoomOut(int = 1).
Qt Signal Documentation
void copyAvailable (bool)
This is the default overload of this signal.
void currentCharFormatChanged (const QTextCharFormat&)
This is the default overload of this signal.
void cursorPositionChanged ()
This is the default overload of this signal.
void redoAvailable (bool)
This is the default overload of this signal.
void selectionChanged ()
This is the default overload of this signal.
void textChanged ()
This is the default overload of this signal.
void undoAvailable (bool)
This is the default overload of this signal.