API reference - Class QGraphicsTextItemNotation used in Ruby API documentation Description: Binding of QGraphicsTextItem Class hierarchy: QGraphicsTextItem » QGraphicsObject » QObject
Public constructors
Public methods
Public static methods and constants
Protected methods (static, non-static and constructors)
Deprecated methods (protected, public, static, non-static and constructors)
Detailed descriptionvoid _createDescription: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. void _destroyDescription: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. [const] bool _destroyed?Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. [const] bool _is_const_object?Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. void _manageDescription: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. void _unmanageDescription: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. void addToIndexDescription: Method void QGraphicsTextItem::addToIndex() This method is protected and can only be called from inside a derived class. void adjustSizeDescription: Method void QGraphicsTextItem::adjustSize() [virtual] void advance(int phase)Description: Virtual method void QGraphicsTextItem::advance(int phase) This method can be reimplemented in a derived class. [virtual,const] QRectF boundingRectDescription: Virtual method QRectF QGraphicsTextItem::boundingRect() This method can be reimplemented in a derived class. [virtual] void childEvent(QChildEvent ptr arg1)Description: Virtual method void QGraphicsTextItem::childEvent(QChildEvent *) This method can be reimplemented in a derived class. [virtual,const] bool collidesWithItem(const QGraphicsItem ptr other,const Qt_ItemSelectionMode mode)Description: Virtual method bool QGraphicsTextItem::collidesWithItem(const QGraphicsItem *other, Qt::ItemSelectionMode mode) This method can be reimplemented in a derived class. [virtual,const] bool collidesWithPath(const QPainterPath path,const Qt_ItemSelectionMode mode)Description: Virtual method bool QGraphicsTextItem::collidesWithPath(const QPainterPath &path, Qt::ItemSelectionMode mode) This method can be reimplemented in a derived class. [virtual,const] bool contains(const QPointF point)Description: Virtual method bool QGraphicsTextItem::contains(const QPointF &point) This method can be reimplemented in a derived class. [virtual] void contextMenuEvent(QGraphicsSceneContextMenuEvent ptr event)Description: Virtual method void QGraphicsTextItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) This method can be reimplemented in a derived class. void createDescription: Ensures the C++ object is created Use of this method is deprecated. Use _create instead [virtual] void customEvent(QEvent ptr arg1)Description: Virtual method void QGraphicsTextItem::customEvent(QEvent *) This method can be reimplemented in a derived class. [const] QColor defaultTextColorDescription: Method QColor QGraphicsTextItem::defaultTextColor() Python specific notes:The object exposes a readable attribute 'defaultTextColor'. This is the getter. void defaultTextColor=(const QColor c)Description: Method void QGraphicsTextItem::setDefaultTextColor(const QColor &c) Python specific notes:The object exposes a writable attribute 'defaultTextColor'. This is the setter. void destroyDescription: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead [event] void destroyed(QObject ptr arg1)Description: Signal declaration for QGraphicsTextItem::destroyed(QObject *) You can bind a procedure to this signal. [const] bool destroyed?Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead [virtual] void disconnectNotify(string signal)Description: Virtual method void QGraphicsTextItem::disconnectNotify(const char *signal) This method can be reimplemented in a derived class. [const] QTextDocument ptr documentDescription: Method QTextDocument *QGraphicsTextItem::document() Python specific notes:The object exposes a readable attribute 'document'. This is the getter. void document=(QTextDocument ptr document)Description: Method void QGraphicsTextItem::setDocument(QTextDocument *document) Python specific notes:The object exposes a writable attribute 'document'. This is the setter. [virtual] void dragEnterEvent(QGraphicsSceneDragDropEvent ptr event)Description: Virtual method void QGraphicsTextItem::dragEnterEvent(QGraphicsSceneDragDropEvent *event) This method can be reimplemented in a derived class. [virtual] void dragLeaveEvent(QGraphicsSceneDragDropEvent ptr event)Description: Virtual method void QGraphicsTextItem::dragLeaveEvent(QGraphicsSceneDragDropEvent *event) This method can be reimplemented in a derived class. [virtual] void dragMoveEvent(QGraphicsSceneDragDropEvent ptr event)Description: Virtual method void QGraphicsTextItem::dragMoveEvent(QGraphicsSceneDragDropEvent *event) This method can be reimplemented in a derived class. [virtual] void dropEvent(QGraphicsSceneDragDropEvent ptr event)Description: Virtual method void QGraphicsTextItem::dropEvent(QGraphicsSceneDragDropEvent *event) This method can be reimplemented in a derived class. [event] void enabledChangedDescription: Signal declaration for QGraphicsTextItem::enabledChanged() You can bind a procedure to this signal. [virtual] bool event(QEvent ptr arg1)Description: Virtual method bool QGraphicsTextItem::event(QEvent *) This method can be reimplemented in a derived class. [virtual] bool eventFilter(QObject ptr arg1,QEvent ptr arg2)Description: Virtual method bool QGraphicsTextItem::eventFilter(QObject *, QEvent *) This method can be reimplemented in a derived class. [virtual,const] QVariant extension(const QVariant variant)Description: Virtual method QVariant QGraphicsTextItem::extension(const QVariant &variant) This method can be reimplemented in a derived class. [virtual] void focusInEvent(QFocusEvent ptr event)Description: Virtual method void QGraphicsTextItem::focusInEvent(QFocusEvent *event) This method can be reimplemented in a derived class. [virtual] void focusOutEvent(QFocusEvent ptr event)Description: Virtual method void QGraphicsTextItem::focusOutEvent(QFocusEvent *event) This method can be reimplemented in a derived class. [const] QFont fontDescription: Method QFont QGraphicsTextItem::font() Python specific notes:The object exposes a readable attribute 'font'. This is the getter. void font=(const QFont font)Description: Method void QGraphicsTextItem::setFont(const QFont &font) Python specific notes:The object exposes a writable attribute 'font'. This is the setter. [virtual] void hoverEnterEvent(QGraphicsSceneHoverEvent ptr event)Description: Virtual method void QGraphicsTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) This method can be reimplemented in a derived class. [virtual] void hoverLeaveEvent(QGraphicsSceneHoverEvent ptr event)Description: Virtual method void QGraphicsTextItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) This method can be reimplemented in a derived class. [virtual] void hoverMoveEvent(QGraphicsSceneHoverEvent ptr event)Description: Virtual method void QGraphicsTextItem::hoverMoveEvent(QGraphicsSceneHoverEvent *event) This method can be reimplemented in a derived class. [virtual] void inputMethodEvent(QInputMethodEvent ptr event)Description: Virtual method void QGraphicsTextItem::inputMethodEvent(QInputMethodEvent *event) This method can be reimplemented in a derived class. [virtual,const] QVariant inputMethodQuery(const Qt_InputMethodQuery query)Description: Virtual method QVariant QGraphicsTextItem::inputMethodQuery(Qt::InputMethodQuery query) This method can be reimplemented in a derived class. [virtual,const] bool isObscuredBy(const QGraphicsItem ptr item)Description: Virtual method bool QGraphicsTextItem::isObscuredBy(const QGraphicsItem *item) This method can be reimplemented in a derived class. [const] bool isObscuredBy?(const QGraphicsItem ptr item)Description: Method bool QGraphicsTextItem::isObscuredBy(const QGraphicsItem *item) This is a reimplementation of QGraphicsItem::isObscuredBy [const] bool is_const_object?Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead [virtual] QVariant itemChange(const QGraphicsItem_GraphicsItemChange change,const QVariant value)Description: Virtual method QVariant QGraphicsTextItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value) This method can be reimplemented in a derived class. [virtual] void keyPressEvent(QKeyEvent ptr event)Description: Virtual method void QGraphicsTextItem::keyPressEvent(QKeyEvent *event) This method can be reimplemented in a derived class. [virtual] void keyReleaseEvent(QKeyEvent ptr event)Description: Virtual method void QGraphicsTextItem::keyReleaseEvent(QKeyEvent *event) This method can be reimplemented in a derived class. [event] void linkActivated(string arg1)Description: Signal declaration for QGraphicsTextItem::linkActivated(const QString &) You can bind a procedure to this signal. [event] void linkHovered(string arg1)Description: Signal declaration for QGraphicsTextItem::linkHovered(const QString &) You can bind a procedure to this signal. [virtual] void mouseDoubleClickEvent(QGraphicsSceneMouseEvent ptr event)Description: Virtual method void QGraphicsTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) This method can be reimplemented in a derived class. [virtual] void mouseMoveEvent(QGraphicsSceneMouseEvent ptr event)Description: Virtual method void QGraphicsTextItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event) This method can be reimplemented in a derived class. [virtual] void mousePressEvent(QGraphicsSceneMouseEvent ptr event)Description: Virtual method void QGraphicsTextItem::mousePressEvent(QGraphicsSceneMouseEvent *event) This method can be reimplemented in a derived class. [virtual] void mouseReleaseEvent(QGraphicsSceneMouseEvent ptr event)Description: Virtual method void QGraphicsTextItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) This method can be reimplemented in a derived class. [static] new QGraphicsTextItem new(QGraphicsItem ptr parent = 0,QGraphicsScene ptr scene = 0)Description: Constructor QGraphicsTextItem::QGraphicsTextItem(QGraphicsItem *parent, QGraphicsScene *scene) This method creates an object of class QGraphicsTextItem. Python specific notes:This method is the default initializer of the object [static] new QGraphicsTextItem new(string text,QGraphicsItem ptr parent = 0,QGraphicsScene ptr scene = 0)Description: Constructor QGraphicsTextItem::QGraphicsTextItem(const QString &text, QGraphicsItem *parent, QGraphicsScene *scene) This method creates an object of class QGraphicsTextItem. Python specific notes:This method is the default initializer of the object [event] void opacityChangedDescription: Signal declaration for QGraphicsTextItem::opacityChanged() You can bind a procedure to this signal. [virtual,const] QPainterPath opaqueAreaDescription: Virtual method QPainterPath QGraphicsTextItem::opaqueArea() This method can be reimplemented in a derived class. [const] bool openExternalLinksDescription: Method bool QGraphicsTextItem::openExternalLinks() Python specific notes:The object exposes a readable attribute 'openExternalLinks'. This is the getter. void openExternalLinks=(bool open)Description: Method void QGraphicsTextItem::setOpenExternalLinks(bool open) Python specific notes:The object exposes a writable attribute 'openExternalLinks'. This is the setter. [virtual] void paint(QPainter ptr painter,const QStyleOptionGraphicsItem ptr option,QWidget ptr widget)Description: Virtual method void QGraphicsTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) This method can be reimplemented in a derived class. [event] void parentChangedDescription: Signal declaration for QGraphicsTextItem::parentChanged() You can bind a procedure to this signal. void prepareGeometryChangeDescription: Method void QGraphicsTextItem::prepareGeometryChange() This method is protected and can only be called from inside a derived class. [const] int receivers(string signal)Description: Method int QGraphicsTextItem::receivers(const char *signal) This method is protected and can only be called from inside a derived class. void removeFromIndexDescription: Method void QGraphicsTextItem::removeFromIndex() This method is protected and can only be called from inside a derived class. [event] void rotationChangedDescription: Signal declaration for QGraphicsTextItem::rotationChanged() You can bind a procedure to this signal. [event] void scaleChangedDescription: Signal declaration for QGraphicsTextItem::scaleChanged() You can bind a procedure to this signal. [virtual] bool sceneEvent(QEvent ptr event)Description: Virtual method bool QGraphicsTextItem::sceneEvent(QEvent *event) This method can be reimplemented in a derived class. [virtual] bool sceneEventFilter(QGraphicsItem ptr watched,QEvent ptr event)Description: Virtual method bool QGraphicsTextItem::sceneEventFilter(QGraphicsItem *watched, QEvent *event) This method can be reimplemented in a derived class. [const] QObject ptr senderDescription: Method QObject *QGraphicsTextItem::sender() This method is protected and can only be called from inside a derived class. void setDefaultTextColor(const QColor c)Description: Method void QGraphicsTextItem::setDefaultTextColor(const QColor &c) Python specific notes:The object exposes a writable attribute 'defaultTextColor'. This is the setter. void setDocument(QTextDocument ptr document)Description: Method void QGraphicsTextItem::setDocument(QTextDocument *document) Python specific notes:The object exposes a writable attribute 'document'. This is the setter. [virtual] void setExtension(unsigned int extension,const QVariant variant)Description: Virtual method void QGraphicsTextItem::setExtension(QGraphicsItem::Extension extension, const QVariant &variant) This method can be reimplemented in a derived class. void setFont(const QFont font)Description: Method void QGraphicsTextItem::setFont(const QFont &font) Python specific notes:The object exposes a writable attribute 'font'. This is the setter. void setHtml(string html)Description: Method void QGraphicsTextItem::setHtml(const QString &html) void setOpenExternalLinks(bool open)Description: Method void QGraphicsTextItem::setOpenExternalLinks(bool open) Python specific notes:The object exposes a writable attribute 'openExternalLinks'. This is the setter. void setPlainText(string text)Description: Method void QGraphicsTextItem::setPlainText(const QString &text) void setTabChangesFocus(bool b)Description: Method void QGraphicsTextItem::setTabChangesFocus(bool b) Python specific notes:The object exposes a writable attribute 'tabChangesFocus'. This is the setter. void setTextCursor(const QTextCursor cursor)Description: Method void QGraphicsTextItem::setTextCursor(const QTextCursor &cursor) Python specific notes:The object exposes a writable attribute 'textCursor'. This is the setter. void setTextInteractionFlags(const Qt_QFlags_TextInteractionFlag flags)Description: Method void QGraphicsTextItem::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags) Python specific notes:The object exposes a writable attribute 'textInteractionFlags'. This is the setter. void setTextWidth(double width)Description: Method void QGraphicsTextItem::setTextWidth(double width) Python specific notes:The object exposes a writable attribute 'textWidth'. This is the setter. [virtual,const] QPainterPath shapeDescription: Virtual method QPainterPath QGraphicsTextItem::shape() This method can be reimplemented in a derived class. [static] QMetaObject staticMetaObjectDescription: Obtains the static MetaObject for this class. [virtual,const] bool supportsExtension(unsigned int extension)Description: Virtual method bool QGraphicsTextItem::supportsExtension(QGraphicsItem::Extension extension) This method can be reimplemented in a derived class. [const] bool tabChangesFocusDescription: Method bool QGraphicsTextItem::tabChangesFocus() Python specific notes:The object exposes a readable attribute 'tabChangesFocus'. This is the getter. void tabChangesFocus=(bool b)Description: Method void QGraphicsTextItem::setTabChangesFocus(bool b) Python specific notes:The object exposes a writable attribute 'tabChangesFocus'. This is the setter. [const] QTextCursor textCursorDescription: Method QTextCursor QGraphicsTextItem::textCursor() Python specific notes:The object exposes a readable attribute 'textCursor'. This is the getter. void textCursor=(const QTextCursor cursor)Description: Method void QGraphicsTextItem::setTextCursor(const QTextCursor &cursor) Python specific notes:The object exposes a writable attribute 'textCursor'. This is the setter. [const] Qt_QFlags_TextInteractionFlag textInteractionFlagsDescription: Method QFlags<Qt::TextInteractionFlag> QGraphicsTextItem::textInteractionFlags() Python specific notes:The object exposes a readable attribute 'textInteractionFlags'. This is the getter. void textInteractionFlags=(const Qt_QFlags_TextInteractionFlag flags)Description: Method void QGraphicsTextItem::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags) Python specific notes:The object exposes a writable attribute 'textInteractionFlags'. This is the setter. [const] double textWidthDescription: Method double QGraphicsTextItem::textWidth() Python specific notes:The object exposes a readable attribute 'textWidth'. This is the getter. void textWidth=(double width)Description: Method void QGraphicsTextItem::setTextWidth(double width) Python specific notes:The object exposes a writable attribute 'textWidth'. This is the setter. [virtual] void timerEvent(QTimerEvent ptr arg1)Description: Virtual method void QGraphicsTextItem::timerEvent(QTimerEvent *) This method can be reimplemented in a derived class. [const] string toHtmlDescription: Method QString QGraphicsTextItem::toHtml() [const] string toPlainTextDescription: Method QString QGraphicsTextItem::toPlainText() [static] string tr(string s,string c = 0)Description: Static method QString QGraphicsTextItem::tr(const char *s, const char *c) This method is static and can be called without an instance. [static] string tr(string s,string c,int n)Description: Static method QString QGraphicsTextItem::tr(const char *s, const char *c, int n) This method is static and can be called without an instance. [static] string trUtf8(string s,string c = 0)Description: Static method QString QGraphicsTextItem::trUtf8(const char *s, const char *c) This method is static and can be called without an instance. [static] string trUtf8(string s,string c,int n)Description: Static method QString QGraphicsTextItem::trUtf8(const char *s, const char *c, int n) This method is static and can be called without an instance. [virtual,const] int typeDescription: Virtual method int QGraphicsTextItem::type() This method can be reimplemented in a derived class. [event] void visibleChangedDescription: Signal declaration for QGraphicsTextItem::visibleChanged() You can bind a procedure to this signal. [virtual] void wheelEvent(QGraphicsSceneWheelEvent ptr event)Description: Virtual method void QGraphicsTextItem::wheelEvent(QGraphicsSceneWheelEvent *event) This method can be reimplemented in a derived class. [event] void xChangedDescription: Signal declaration for QGraphicsTextItem::xChanged() You can bind a procedure to this signal. [event] void yChangedDescription: Signal declaration for QGraphicsTextItem::yChanged() You can bind a procedure to this signal. [event] void zChangedDescription: Signal declaration for QGraphicsTextItem::zChanged() You can bind a procedure to this signal. |