KLayout 0.29.8 (2024-10-28 63dd591e5) [master]

API reference - Class QGraphicsTextItem

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QGraphicsTextItem

Class hierarchy: QGraphicsTextItem » QGraphicsObject » QObject

Public constructors

new QGraphicsTextItemnew(QGraphicsItem ptr parent = nullptr)Constructor QGraphicsTextItem::QGraphicsTextItem(QGraphicsItem *parent)
new QGraphicsTextItemnew(string text,
QGraphicsItem ptr parent = nullptr)
Constructor QGraphicsTextItem::QGraphicsTextItem(const QString &text, QGraphicsItem *parent)

Public methods

[const]QGraphicsTextItem ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidadjustSizeMethod void QGraphicsTextItem::adjustSize()
voidadvance(int phase)Virtual method void QGraphicsTextItem::advance(int phase)
[const]QRectFboundingRectVirtual method QRectF QGraphicsTextItem::boundingRect()
[signal]voidchildrenChangedSignal declaration for QGraphicsTextItem::childrenChanged()
[const]boolcollidesWithItem(const QGraphicsItem ptr other,
const Qt_ItemSelectionMode mode)
Virtual method bool QGraphicsTextItem::collidesWithItem(const QGraphicsItem *other, Qt::ItemSelectionMode mode)
[const]boolcollidesWithPath(const QPainterPath path,
const Qt_ItemSelectionMode mode)
Virtual method bool QGraphicsTextItem::collidesWithPath(const QPainterPath &path, Qt::ItemSelectionMode mode)
[const]boolcontains(const QPointF point)Virtual method bool QGraphicsTextItem::contains(const QPointF &point)
[const]QColordefaultTextColorMethod QColor QGraphicsTextItem::defaultTextColor()
voiddefaultTextColor=(const QColor c)Method void QGraphicsTextItem::setDefaultTextColor(const QColor &c)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QGraphicsTextItem::destroyed(QObject *)
[const]QTextDocument ptrdocumentMethod QTextDocument *QGraphicsTextItem::document()
voiddocument=(QTextDocument ptr document)Method void QGraphicsTextItem::setDocument(QTextDocument *document)
voidemit_childrenChangedEmitter for signal void QGraphicsTextItem::childrenChanged()
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QGraphicsTextItem::destroyed(QObject *)
voidemit_enabledChangedEmitter for signal void QGraphicsTextItem::enabledChanged()
voidemit_heightChangedEmitter for signal void QGraphicsTextItem::heightChanged()
voidemit_linkActivated(string arg1)Emitter for signal void QGraphicsTextItem::linkActivated(const QString &)
voidemit_linkHovered(string arg1)Emitter for signal void QGraphicsTextItem::linkHovered(const QString &)
voidemit_objectNameChanged(string objectName)Emitter for signal void QGraphicsTextItem::objectNameChanged(const QString &objectName)
voidemit_opacityChangedEmitter for signal void QGraphicsTextItem::opacityChanged()
voidemit_parentChangedEmitter for signal void QGraphicsTextItem::parentChanged()
voidemit_rotationChangedEmitter for signal void QGraphicsTextItem::rotationChanged()
voidemit_scaleChangedEmitter for signal void QGraphicsTextItem::scaleChanged()
voidemit_visibleChangedEmitter for signal void QGraphicsTextItem::visibleChanged()
voidemit_widthChangedEmitter for signal void QGraphicsTextItem::widthChanged()
voidemit_xChangedEmitter for signal void QGraphicsTextItem::xChanged()
voidemit_yChangedEmitter for signal void QGraphicsTextItem::yChanged()
voidemit_zChangedEmitter for signal void QGraphicsTextItem::zChanged()
[signal]voidenabledChangedSignal declaration for QGraphicsTextItem::enabledChanged()
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QGraphicsTextItem::eventFilter(QObject *watched, QEvent *event)
[const]QFontfontMethod QFont QGraphicsTextItem::font()
voidfont=(const QFont font)Method void QGraphicsTextItem::setFont(const QFont &font)
[signal]voidheightChangedSignal declaration for QGraphicsTextItem::heightChanged()
[const]boolisObscuredBy(const QGraphicsItem ptr item)Virtual method bool QGraphicsTextItem::isObscuredBy(const QGraphicsItem *item)
[const]boolisObscuredBy?(const QGraphicsItem ptr item)Method bool QGraphicsTextItem::isObscuredBy(const QGraphicsItem *item)
[signal]voidlinkActivated(string arg1)Signal declaration for QGraphicsTextItem::linkActivated(const QString &)
[signal]voidlinkHovered(string arg1)Signal declaration for QGraphicsTextItem::linkHovered(const QString &)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QGraphicsTextItem::objectNameChanged(const QString &objectName)
[signal]voidopacityChangedSignal declaration for QGraphicsTextItem::opacityChanged()
[const]QPainterPathopaqueAreaVirtual method QPainterPath QGraphicsTextItem::opaqueArea()
[const]boolopenExternalLinksMethod bool QGraphicsTextItem::openExternalLinks()
voidopenExternalLinks=(bool open)Method void QGraphicsTextItem::setOpenExternalLinks(bool open)
voidpaint(QPainter ptr painter,
const QStyleOptionGraphicsItem ptr option,
QWidget ptr widget)
Virtual method void QGraphicsTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
[signal]voidparentChangedSignal declaration for QGraphicsTextItem::parentChanged()
[signal]voidrotationChangedSignal declaration for QGraphicsTextItem::rotationChanged()
[signal]voidscaleChangedSignal declaration for QGraphicsTextItem::scaleChanged()
voidsetDefaultTextColor(const QColor c)Method void QGraphicsTextItem::setDefaultTextColor(const QColor &c)
voidsetDocument(QTextDocument ptr document)Method void QGraphicsTextItem::setDocument(QTextDocument *document)
voidsetFont(const QFont font)Method void QGraphicsTextItem::setFont(const QFont &font)
voidsetHtml(string html)Method void QGraphicsTextItem::setHtml(const QString &html)
voidsetOpenExternalLinks(bool open)Method void QGraphicsTextItem::setOpenExternalLinks(bool open)
voidsetPlainText(string text)Method void QGraphicsTextItem::setPlainText(const QString &text)
voidsetTabChangesFocus(bool b)Method void QGraphicsTextItem::setTabChangesFocus(bool b)
voidsetTextCursor(const QTextCursor cursor)Method void QGraphicsTextItem::setTextCursor(const QTextCursor &cursor)
voidsetTextInteractionFlags(Qt_QFlags_TextInteractionFlag flags)Method void QGraphicsTextItem::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags)
voidsetTextWidth(double width)Method void QGraphicsTextItem::setTextWidth(double width)
[const]QPainterPathshapeVirtual method QPainterPath QGraphicsTextItem::shape()
[const]booltabChangesFocusMethod bool QGraphicsTextItem::tabChangesFocus()
voidtabChangesFocus=(bool b)Method void QGraphicsTextItem::setTabChangesFocus(bool b)
[const]QTextCursortextCursorMethod QTextCursor QGraphicsTextItem::textCursor()
voidtextCursor=(const QTextCursor cursor)Method void QGraphicsTextItem::setTextCursor(const QTextCursor &cursor)
[const]Qt_QFlags_TextInteractionFlagtextInteractionFlagsMethod QFlags<Qt::TextInteractionFlag> QGraphicsTextItem::textInteractionFlags()
voidtextInteractionFlags=(Qt_QFlags_TextInteractionFlag flags)Method void QGraphicsTextItem::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags)
[const]doubletextWidthMethod double QGraphicsTextItem::textWidth()
voidtextWidth=(double width)Method void QGraphicsTextItem::setTextWidth(double width)
[const]stringtoHtmlMethod QString QGraphicsTextItem::toHtml()
[const]stringtoPlainTextMethod QString QGraphicsTextItem::toPlainText()
[const]inttypeVirtual method int QGraphicsTextItem::type()
[signal]voidvisibleChangedSignal declaration for QGraphicsTextItem::visibleChanged()
[signal]voidwidthChangedSignal declaration for QGraphicsTextItem::widthChanged()
[signal]voidxChangedSignal declaration for QGraphicsTextItem::xChanged()
[signal]voidyChangedSignal declaration for QGraphicsTextItem::yChanged()
[signal]voidzChangedSignal declaration for QGraphicsTextItem::zChanged()

Public static methods and constants

QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsTextItem::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsTextItem::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidaddToIndexMethod void QGraphicsTextItem::addToIndex()
voidchildEvent(QChildEvent ptr event)Virtual method void QGraphicsTextItem::childEvent(QChildEvent *event)
voidcontextMenuEvent(QGraphicsSceneContextMenuEvent ptr event)Virtual method void QGraphicsTextItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QGraphicsTextItem::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QGraphicsTextItem::disconnectNotify(const QMetaMethod &signal)
voiddragEnterEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsTextItem::dragEnterEvent(QGraphicsSceneDragDropEvent *event)
voiddragLeaveEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsTextItem::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
voiddragMoveEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsTextItem::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
voiddropEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsTextItem::dropEvent(QGraphicsSceneDragDropEvent *event)
boolevent(QEvent ptr ev)Virtual method bool QGraphicsTextItem::event(QEvent *ev)
[const]variantextension(variant variant)Virtual method QVariant QGraphicsTextItem::extension(const QVariant &variant)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QGraphicsTextItem::focusInEvent(QFocusEvent *event)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QGraphicsTextItem::focusOutEvent(QFocusEvent *event)
voidhoverEnterEvent(QGraphicsSceneHoverEvent ptr event)Virtual method void QGraphicsTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
voidhoverLeaveEvent(QGraphicsSceneHoverEvent ptr event)Virtual method void QGraphicsTextItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
voidhoverMoveEvent(QGraphicsSceneHoverEvent ptr event)Virtual method void QGraphicsTextItem::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
voidinputMethodEvent(QInputMethodEvent ptr event)Virtual method void QGraphicsTextItem::inputMethodEvent(QInputMethodEvent *event)
[const]variantinputMethodQuery(const Qt_InputMethodQuery query)Virtual method QVariant QGraphicsTextItem::inputMethodQuery(Qt::InputMethodQuery query)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QGraphicsTextItem::isSignalConnected(const QMetaMethod &signal)
variantitemChange(const QGraphicsItem_GraphicsItemChange change,
variant value)
Virtual method QVariant QGraphicsTextItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QGraphicsTextItem::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QGraphicsTextItem::keyReleaseEvent(QKeyEvent *event)
voidmouseDoubleClickEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
voidmouseMoveEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsTextItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
voidmousePressEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsTextItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
voidmouseReleaseEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsTextItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
voidprepareGeometryChangeMethod void QGraphicsTextItem::prepareGeometryChange()
[const]intreceivers(string signal)Method int QGraphicsTextItem::receivers(const char *signal)
voidremoveFromIndexMethod void QGraphicsTextItem::removeFromIndex()
boolsceneEvent(QEvent ptr event)Virtual method bool QGraphicsTextItem::sceneEvent(QEvent *event)
boolsceneEventFilter(QGraphicsItem ptr watched,
QEvent ptr event)
Virtual method bool QGraphicsTextItem::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
[const]QObject ptrsenderMethod QObject *QGraphicsTextItem::sender()
[const]intsenderSignalIndexMethod int QGraphicsTextItem::senderSignalIndex()
voidsetExtension(unsigned int extension,
variant variant)
Virtual method void QGraphicsTextItem::setExtension(QGraphicsItem::Extension extension, const QVariant &variant)
[const]boolsupportsExtension(unsigned int extension)Virtual method bool QGraphicsTextItem::supportsExtension(QGraphicsItem::Extension extension)
voidtimerEvent(QTimerEvent ptr event)Virtual method void QGraphicsTextItem::timerEvent(QTimerEvent *event)
voidupdateMicroFocusMethod void QGraphicsTextItem::updateMicroFocus()
voidwheelEvent(QGraphicsSceneWheelEvent ptr event)Virtual method void QGraphicsTextItem::wheelEvent(QGraphicsSceneWheelEvent *event)

Detailed description

_const_cast

Signature: [const] QGraphicsTextItem ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: 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.

_destroy

Signature: void _destroy

Description: 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.

_destroyed?

Signature: [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.

_is_const_object?

Signature: [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.

_manage

Signature: void _manage

Description: 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.

_unmanage

Signature: void _unmanage

Description: 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.

addToIndex

Signature: void addToIndex

Description: Method void QGraphicsTextItem::addToIndex()

This method is protected and can only be called from inside a derived class.

adjustSize

Signature: void adjustSize

Description: Method void QGraphicsTextItem::adjustSize()

advance

Signature: void advance (int phase)

Description: Virtual method void QGraphicsTextItem::advance(int phase)

This method can be reimplemented in a derived class.

boundingRect

Signature: [const] QRectF boundingRect

Description: Virtual method QRectF QGraphicsTextItem::boundingRect()

This method can be reimplemented in a derived class.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QGraphicsTextItem::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

childrenChanged

Signature: [signal] void childrenChanged

Description: Signal declaration for QGraphicsTextItem::childrenChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'childrenChanged'. This is the getter.
The object exposes a writable attribute 'childrenChanged'. This is the setter.

collidesWithItem

Signature: [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.

collidesWithPath

Signature: [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.

contains

Signature: [const] bool contains (const QPointF point)

Description: Virtual method bool QGraphicsTextItem::contains(const QPointF &point)

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QGraphicsSceneContextMenuEvent ptr event)

Description: Virtual method void QGraphicsTextItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)

This method can be reimplemented in a derived class.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QGraphicsTextItem::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

defaultTextColor

Signature: [const] QColor defaultTextColor

Description: Method QColor QGraphicsTextItem::defaultTextColor()

Python specific notes:
The object exposes a readable attribute 'defaultTextColor'. This is the getter.

defaultTextColor=

Signature: 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.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QGraphicsTextItem::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QGraphicsTextItem::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

document

Signature: [const] QTextDocument ptr document

Description: Method QTextDocument *QGraphicsTextItem::document()

Python specific notes:
The object exposes a readable attribute 'document'. This is the getter.

document=

Signature: 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.

dragEnterEvent

Signature: void dragEnterEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsTextItem::dragEnterEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsTextItem::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsTextItem::dragMoveEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsTextItem::dropEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

emit_childrenChanged

Signature: void emit_childrenChanged

Description: Emitter for signal void QGraphicsTextItem::childrenChanged()

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QGraphicsTextItem::destroyed(QObject *)

Call this method to emit this signal.

emit_enabledChanged

Signature: void emit_enabledChanged

Description: Emitter for signal void QGraphicsTextItem::enabledChanged()

Call this method to emit this signal.

emit_heightChanged

Signature: void emit_heightChanged

Description: Emitter for signal void QGraphicsTextItem::heightChanged()

Call this method to emit this signal.

emit_linkActivated

Signature: void emit_linkActivated (string arg1)

Description: Emitter for signal void QGraphicsTextItem::linkActivated(const QString &)

Call this method to emit this signal.

emit_linkHovered

Signature: void emit_linkHovered (string arg1)

Description: Emitter for signal void QGraphicsTextItem::linkHovered(const QString &)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QGraphicsTextItem::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_opacityChanged

Signature: void emit_opacityChanged

Description: Emitter for signal void QGraphicsTextItem::opacityChanged()

Call this method to emit this signal.

emit_parentChanged

Signature: void emit_parentChanged

Description: Emitter for signal void QGraphicsTextItem::parentChanged()

Call this method to emit this signal.

emit_rotationChanged

Signature: void emit_rotationChanged

Description: Emitter for signal void QGraphicsTextItem::rotationChanged()

Call this method to emit this signal.

emit_scaleChanged

Signature: void emit_scaleChanged

Description: Emitter for signal void QGraphicsTextItem::scaleChanged()

Call this method to emit this signal.

emit_visibleChanged

Signature: void emit_visibleChanged

Description: Emitter for signal void QGraphicsTextItem::visibleChanged()

Call this method to emit this signal.

emit_widthChanged

Signature: void emit_widthChanged

Description: Emitter for signal void QGraphicsTextItem::widthChanged()

Call this method to emit this signal.

emit_xChanged

Signature: void emit_xChanged

Description: Emitter for signal void QGraphicsTextItem::xChanged()

Call this method to emit this signal.

emit_yChanged

Signature: void emit_yChanged

Description: Emitter for signal void QGraphicsTextItem::yChanged()

Call this method to emit this signal.

emit_zChanged

Signature: void emit_zChanged

Description: Emitter for signal void QGraphicsTextItem::zChanged()

Call this method to emit this signal.

enabledChanged

Signature: [signal] void enabledChanged

Description: Signal declaration for QGraphicsTextItem::enabledChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'enabledChanged'. This is the getter.
The object exposes a writable attribute 'enabledChanged'. This is the setter.

event

Signature: bool event (QEvent ptr ev)

Description: Virtual method bool QGraphicsTextItem::event(QEvent *ev)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QGraphicsTextItem::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

extension

Signature: [const] variant extension (variant variant)

Description: Virtual method QVariant QGraphicsTextItem::extension(const QVariant &variant)

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsTextItem::focusInEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsTextItem::focusOutEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

font

Signature: [const] QFont font

Description: Method QFont QGraphicsTextItem::font()

Python specific notes:
The object exposes a readable attribute 'font'. This is the getter.

font=

Signature: 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.

heightChanged

Signature: [signal] void heightChanged

Description: Signal declaration for QGraphicsTextItem::heightChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'heightChanged'. This is the getter.
The object exposes a writable attribute 'heightChanged'. This is the setter.

hoverEnterEvent

Signature: void hoverEnterEvent (QGraphicsSceneHoverEvent ptr event)

Description: Virtual method void QGraphicsTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)

This method can be reimplemented in a derived class.

hoverLeaveEvent

Signature: void hoverLeaveEvent (QGraphicsSceneHoverEvent ptr event)

Description: Virtual method void QGraphicsTextItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)

This method can be reimplemented in a derived class.

hoverMoveEvent

Signature: void hoverMoveEvent (QGraphicsSceneHoverEvent ptr event)

Description: Virtual method void QGraphicsTextItem::hoverMoveEvent(QGraphicsSceneHoverEvent *event)

This method can be reimplemented in a derived class.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr event)

Description: Virtual method void QGraphicsTextItem::inputMethodEvent(QInputMethodEvent *event)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery query)

Description: Virtual method QVariant QGraphicsTextItem::inputMethodQuery(Qt::InputMethodQuery query)

This method can be reimplemented in a derived class.

isObscuredBy

Signature: [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.

isObscuredBy?

Signature: [const] bool isObscuredBy? (const QGraphicsItem ptr item)

Description: Method bool QGraphicsTextItem::isObscuredBy(const QGraphicsItem *item)

This is a reimplementation of QGraphicsItem::isObscuredBy

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QGraphicsTextItem::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

itemChange

Signature: variant itemChange (const QGraphicsItem_GraphicsItemChange change, variant value)

Description: Virtual method QVariant QGraphicsTextItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value)

This method can be reimplemented in a derived class.

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsTextItem::keyPressEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsTextItem::keyReleaseEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

linkActivated

Signature: [signal] void linkActivated (string arg1)

Description: Signal declaration for QGraphicsTextItem::linkActivated(const QString &)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'linkActivated'. This is the getter.
The object exposes a writable attribute 'linkActivated'. This is the setter.

linkHovered

Signature: [signal] void linkHovered (string arg1)

Description: Signal declaration for QGraphicsTextItem::linkHovered(const QString &)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'linkHovered'. This is the getter.
The object exposes a writable attribute 'linkHovered'. This is the setter.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsTextItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsTextItem::mousePressEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsTextItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

new

(1) Signature: [static] new QGraphicsTextItem new (QGraphicsItem ptr parent = nullptr)

Description: Constructor QGraphicsTextItem::QGraphicsTextItem(QGraphicsItem *parent)

This method creates an object of class QGraphicsTextItem.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QGraphicsTextItem new (string text, QGraphicsItem ptr parent = nullptr)

Description: Constructor QGraphicsTextItem::QGraphicsTextItem(const QString &text, QGraphicsItem *parent)

This method creates an object of class QGraphicsTextItem.

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QGraphicsTextItem::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

opacityChanged

Signature: [signal] void opacityChanged

Description: Signal declaration for QGraphicsTextItem::opacityChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'opacityChanged'. This is the getter.
The object exposes a writable attribute 'opacityChanged'. This is the setter.

opaqueArea

Signature: [const] QPainterPath opaqueArea

Description: Virtual method QPainterPath QGraphicsTextItem::opaqueArea()

This method can be reimplemented in a derived class.

openExternalLinks

Signature: [const] bool openExternalLinks

Description: Method bool QGraphicsTextItem::openExternalLinks()

Python specific notes:
The object exposes a readable attribute 'openExternalLinks'. This is the getter.

openExternalLinks=

Signature: 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.

paint

Signature: 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.

parentChanged

Signature: [signal] void parentChanged

Description: Signal declaration for QGraphicsTextItem::parentChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'parentChanged'. This is the getter.
The object exposes a writable attribute 'parentChanged'. This is the setter.

prepareGeometryChange

Signature: void prepareGeometryChange

Description: Method void QGraphicsTextItem::prepareGeometryChange()

This method is protected and can only be called from inside a derived class.

receivers

Signature: [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.

removeFromIndex

Signature: void removeFromIndex

Description: Method void QGraphicsTextItem::removeFromIndex()

This method is protected and can only be called from inside a derived class.

rotationChanged

Signature: [signal] void rotationChanged

Description: Signal declaration for QGraphicsTextItem::rotationChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'rotationChanged'. This is the getter.
The object exposes a writable attribute 'rotationChanged'. This is the setter.

scaleChanged

Signature: [signal] void scaleChanged

Description: Signal declaration for QGraphicsTextItem::scaleChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'scaleChanged'. This is the getter.
The object exposes a writable attribute 'scaleChanged'. This is the setter.

sceneEvent

Signature: bool sceneEvent (QEvent ptr event)

Description: Virtual method bool QGraphicsTextItem::sceneEvent(QEvent *event)

This method can be reimplemented in a derived class.

sceneEventFilter

Signature: 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.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QGraphicsTextItem::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QGraphicsTextItem::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

setDefaultTextColor

Signature: 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.

setDocument

Signature: 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.

setExtension

Signature: void setExtension (unsigned int extension, variant variant)

Description: Virtual method void QGraphicsTextItem::setExtension(QGraphicsItem::Extension extension, const QVariant &variant)

This method can be reimplemented in a derived class.

setFont

Signature: 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.

setHtml

Signature: void setHtml (string html)

Description: Method void QGraphicsTextItem::setHtml(const QString &html)

setOpenExternalLinks

Signature: 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.

setPlainText

Signature: void setPlainText (string text)

Description: Method void QGraphicsTextItem::setPlainText(const QString &text)

setTabChangesFocus

Signature: 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.

setTextCursor

Signature: 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.

setTextInteractionFlags

Signature: void setTextInteractionFlags (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.

setTextWidth

Signature: 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.

shape

Signature: [const] QPainterPath shape

Description: Virtual method QPainterPath QGraphicsTextItem::shape()

This method can be reimplemented in a derived class.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

supportsExtension

Signature: [const] bool supportsExtension (unsigned int extension)

Description: Virtual method bool QGraphicsTextItem::supportsExtension(QGraphicsItem::Extension extension)

This method can be reimplemented in a derived class.

tabChangesFocus

Signature: [const] bool tabChangesFocus

Description: Method bool QGraphicsTextItem::tabChangesFocus()

Python specific notes:
The object exposes a readable attribute 'tabChangesFocus'. This is the getter.

tabChangesFocus=

Signature: 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.

textCursor

Signature: [const] QTextCursor textCursor

Description: Method QTextCursor QGraphicsTextItem::textCursor()

Python specific notes:
The object exposes a readable attribute 'textCursor'. This is the getter.

textCursor=

Signature: 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.

textInteractionFlags

Signature: [const] Qt_QFlags_TextInteractionFlag textInteractionFlags

Description: Method QFlags<Qt::TextInteractionFlag> QGraphicsTextItem::textInteractionFlags()

Python specific notes:
The object exposes a readable attribute 'textInteractionFlags'. This is the getter.

textInteractionFlags=

Signature: void textInteractionFlags= (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.

textWidth

Signature: [const] double textWidth

Description: Method double QGraphicsTextItem::textWidth()

Python specific notes:
The object exposes a readable attribute 'textWidth'. This is the getter.

textWidth=

Signature: 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.

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QGraphicsTextItem::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

toHtml

Signature: [const] string toHtml

Description: Method QString QGraphicsTextItem::toHtml()

toPlainText

Signature: [const] string toPlainText

Description: Method QString QGraphicsTextItem::toPlainText()

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

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.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

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.

type

Signature: [const] int type

Description: Virtual method int QGraphicsTextItem::type()

This method can be reimplemented in a derived class.

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QGraphicsTextItem::updateMicroFocus()

This method is protected and can only be called from inside a derived class.

visibleChanged

Signature: [signal] void visibleChanged

Description: Signal declaration for QGraphicsTextItem::visibleChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'visibleChanged'. This is the getter.
The object exposes a writable attribute 'visibleChanged'. This is the setter.

wheelEvent

Signature: void wheelEvent (QGraphicsSceneWheelEvent ptr event)

Description: Virtual method void QGraphicsTextItem::wheelEvent(QGraphicsSceneWheelEvent *event)

This method can be reimplemented in a derived class.

widthChanged

Signature: [signal] void widthChanged

Description: Signal declaration for QGraphicsTextItem::widthChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'widthChanged'. This is the getter.
The object exposes a writable attribute 'widthChanged'. This is the setter.

xChanged

Signature: [signal] void xChanged

Description: Signal declaration for QGraphicsTextItem::xChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'xChanged'. This is the getter.
The object exposes a writable attribute 'xChanged'. This is the setter.

yChanged

Signature: [signal] void yChanged

Description: Signal declaration for QGraphicsTextItem::yChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'yChanged'. This is the getter.
The object exposes a writable attribute 'yChanged'. This is the setter.

zChanged

Signature: [signal] void zChanged

Description: Signal declaration for QGraphicsTextItem::zChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'zChanged'. This is the getter.
The object exposes a writable attribute 'zChanged'. This is the setter.