QGraphicsTextItem Class Reference
[QtGui module]
Inherits QGraphicsObject.
Methods
- __init__ (self, QGraphicsItem parent = None, QGraphicsScene scene = None)
- __init__ (self, QString, QGraphicsItem parent = None, QGraphicsScene scene = None)
- adjustSize (self)
- QRectF boundingRect (self)
- bool contains (self, QPointF)
- contextMenuEvent (self, QGraphicsSceneContextMenuEvent)
- QColor defaultTextColor (self)
- QTextDocument document (self)
- dragEnterEvent (self, QGraphicsSceneDragDropEvent)
- dragLeaveEvent (self, QGraphicsSceneDragDropEvent)
- dragMoveEvent (self, QGraphicsSceneDragDropEvent)
- dropEvent (self, QGraphicsSceneDragDropEvent)
- focusInEvent (self, QFocusEvent)
- focusOutEvent (self, QFocusEvent)
- QFont font (self)
- hoverEnterEvent (self, QGraphicsSceneHoverEvent)
- hoverLeaveEvent (self, QGraphicsSceneHoverEvent)
- hoverMoveEvent (self, QGraphicsSceneHoverEvent)
- inputMethodEvent (self, QInputMethodEvent)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery)
- bool isObscuredBy (self, QGraphicsItem)
- keyPressEvent (self, QKeyEvent)
- keyReleaseEvent (self, QKeyEvent)
- mouseDoubleClickEvent (self, QGraphicsSceneMouseEvent)
- mouseMoveEvent (self, QGraphicsSceneMouseEvent)
- mousePressEvent (self, QGraphicsSceneMouseEvent)
- mouseReleaseEvent (self, QGraphicsSceneMouseEvent)
- QPainterPath opaqueArea (self)
- bool openExternalLinks (self)
- paint (self, QPainter, QStyleOptionGraphicsItem, QWidget)
- bool sceneEvent (self, QEvent)
- setDefaultTextColor (self, QColor)
- setDocument (self, QTextDocument)
- setFont (self, QFont)
- setHtml (self, QString)
- setOpenExternalLinks (self, bool)
- setPlainText (self, QString)
- setTabChangesFocus (self, bool)
- setTextCursor (self, QTextCursor)
- setTextInteractionFlags (self, Qt.TextInteractionFlags)
- setTextWidth (self, float)
- QPainterPath shape (self)
- bool tabChangesFocus (self)
- QTextCursor textCursor (self)
- Qt.TextInteractionFlags textInteractionFlags (self)
- float textWidth (self)
- QString toHtml (self)
- QString toPlainText (self)
- int type (self)
Qt Signals
Detailed Description
Method Documentation
QGraphicsTextItem.__init__ (self, QGraphicsItem parent = None, QGraphicsScene scene = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The scene argument, if not None, causes self to be owned by Qt instead of PyQt.
QGraphicsTextItem.__init__ (self, QString, QGraphicsItem parent = None, QGraphicsScene scene = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The scene argument, if not None, causes self to be owned by Qt instead of PyQt.
QGraphicsTextItem.adjustSize (self)
QRectF QGraphicsTextItem.boundingRect (self)
bool QGraphicsTextItem.contains (self, QPointF)
QColor QGraphicsTextItem.defaultTextColor (self)
QTextDocument QGraphicsTextItem.document (self)
QGraphicsTextItem.focusInEvent (self, QFocusEvent)
QGraphicsTextItem.focusOutEvent (self, QFocusEvent)
QFont QGraphicsTextItem.font (self)
QGraphicsTextItem.inputMethodEvent (self, QInputMethodEvent)
QVariant QGraphicsTextItem.inputMethodQuery (self, Qt.InputMethodQuery)
bool QGraphicsTextItem.isObscuredBy (self, QGraphicsItem)
QGraphicsTextItem.keyPressEvent (self, QKeyEvent)
QGraphicsTextItem.keyReleaseEvent (self, QKeyEvent)
QPainterPath QGraphicsTextItem.opaqueArea (self)
bool QGraphicsTextItem.openExternalLinks (self)
bool QGraphicsTextItem.sceneEvent (self, QEvent)
QGraphicsTextItem.setDefaultTextColor (self, QColor)
QGraphicsTextItem.setDocument (self, QTextDocument)
QGraphicsTextItem.setFont (self, QFont)
QGraphicsTextItem.setHtml (self, QString)
QGraphicsTextItem.setOpenExternalLinks (self, bool)
QGraphicsTextItem.setPlainText (self, QString)
QGraphicsTextItem.setTabChangesFocus (self, bool)
QGraphicsTextItem.setTextCursor (self, QTextCursor)
QGraphicsTextItem.setTextInteractionFlags (self, Qt.TextInteractionFlags)
QGraphicsTextItem.setTextWidth (self, float)
QPainterPath QGraphicsTextItem.shape (self)
bool QGraphicsTextItem.tabChangesFocus (self)
QTextCursor QGraphicsTextItem.textCursor (self)
float QGraphicsTextItem.textWidth (self)
QString QGraphicsTextItem.toHtml (self)
QString QGraphicsTextItem.toPlainText (self)
int QGraphicsTextItem.type (self)
Qt Signal Documentation
void linkActivated (const QString&)
This is the default overload of this signal.
void linkHovered (const QString&)
This is the default overload of this signal.