PythonQt.QtGui.QGraphicsTextItem · declarations 002
Back to PythonQt.QtGui.QGraphicsTextItem
scaleChanged
scaleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsTextItem.scaleChanged; argument details are not documented.
sceneEvent
sceneEvent(event: Any) -> bool
X.sceneEvent(event) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QGraphicsTextItem::sceneEvent(QEvent *event)
Reimplements: QGraphicsItem::sceneEvent(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
sceneEvent(self, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#sceneEvent
setDefaultTextColor
setDefaultTextColor(c: Any) -> None
X.setDefaultTextColor(c)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setDefaultTextColor(const QColor \&col)
Sets the color for unformatted text to col.
See also defaultTextColor().
Upstream PySide2 reference signatures (binding differences may apply):
setDefaultTextColor(self, c: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setDefaultTextColor
setDocument
setDocument(document: Any) -> None
X.setDocument(document)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setDocument(QTextDocument *document)
Sets the text document document on the item.
See also document().
Upstream PySide2 reference signatures (binding differences may apply):
setDocument(self, document: PySide2.QtGui.QTextDocument) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setDocument
setExtension
setExtension(extension: Any, variant: Any) -> None
X.setExtension(extension, variant)
Upstream PySide2 reference signatures (binding differences may apply):
setExtension(self, extension: PySide2.QtWidgets.QGraphicsItem.Extension, variant: typing.Any) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setExtension
setFont
setFont(font: Any) -> None
X.setFont(font)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setFont(const QFont \&font)
Sets the font used to render the text item to font.
See also font().
Upstream PySide2 reference signatures (binding differences may apply):
setFont(self, font: PySide2.QtGui.QFont) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setFont
setHtml
setHtml(html: str) -> None
X.setHtml(html)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setHtml(const QString \&text)
Sets the item's text to text, assuming that text is HTML formatted. If the item has keyboard input focus, this function will also call ensureVisible() to ensure that the text is visible in all viewports.
See also toHtml(), hasFocus(), and QGraphicsSimpleTextItem.
Upstream PySide2 reference signatures (binding differences may apply):
setHtml(self, html: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setHtml
setOpenExternalLinks
setOpenExternalLinks(open: bool) -> None
X.setOpenExternalLinks(open)
Upstream PySide2 reference signatures (binding differences may apply):
setOpenExternalLinks(self, open: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setOpenExternalLinks
setPlainText
setPlainText(text: str) -> None
X.setPlainText(text)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setPlainText(const QString \&text)
Sets the item's text to text. If the item has keyboard input focus, this function will also call ensureVisible() to ensure that the text is visible in all viewports.
See also toHtml() and hasFocus().
Upstream PySide2 reference signatures (binding differences may apply):
setPlainText(self, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setPlainText
setTabChangesFocus
setTabChangesFocus(b: bool) -> None
X.setTabChangesFocus(b)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setTabChangesFocus(bool b)
If b is true, the Tab key will cause the widget to change focus; otherwise, the tab key will insert a tab into the document.
In some occasions text edits should not allow the user to input tabulators or change indentation using the Tab key, as this breaks the focus chain. The default is false.
This function was introduced in Qt 4.5.
See also tabChangesFocus(), ItemIsFocusable, and textInteractionFlags().
Upstream PySide2 reference signatures (binding differences may apply):
setTabChangesFocus(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setTabChangesFocus
setTextCursor
setTextCursor(cursor: Any) -> None
X.setTextCursor(cursor)
Upstream PySide2 reference signatures (binding differences may apply):
setTextCursor(self, cursor: PySide2.QtGui.QTextCursor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setTextCursor
setTextInteractionFlags
setTextInteractionFlags(arg0: flags) -> None
X.setTextInteractionFlags(flags)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setTextInteractionFlags(Qt::TextInteractionFlags flags)
Sets the flags flags to specify how the text item should react to user input.
The default for a QGraphicsTextItem is Qt::NoTextInteraction. This function also affects the ItemIsFocusable QGraphicsItem flag by setting it if flags is different from Qt::NoTextInteraction and clearing it otherwise.
By default, the text is read-only. To transform the item into an editor, set the Qt::TextEditable flag.
See also textInteractionFlags().
Upstream PySide2 reference signatures (binding differences may apply):
setTextInteractionFlags(self, flags: PySide2.QtCore.Qt.TextInteractionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setTextInteractionFlags
setTextWidth
setTextWidth(width: float) -> None
X.setTextWidth(width)
Supplemental documentation: Qt 5 reference:
void QGraphicsTextItem::setTextWidth(qreal width)
Sets the preferred width for the item's text. If the actual text is wider than the specified width then it will be broken into multiple lines.
If width is set to -1 then the text will not be broken into multiple lines unless it is enforced through an explicit line break or a new paragraph.
The default value is -1.
Note that QGraphicsTextItem keeps a QTextDocument internally, which is used to calculate the text width.
See also textWidth() and QTextDocument::setTextWidth().
Upstream PySide2 reference signatures (binding differences may apply):
setTextWidth(self, width: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#setTextWidth
shape
shape() -> Any
X.shape() -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
[override virtual] QPainterPath QGraphicsTextItem::shape() const
Reimplements: QGraphicsItem::shape() const.
Upstream PySide2 reference signatures (binding differences may apply):
shape(self) -> PySide2.QtGui.QPainterPath
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#shape
supportsExtension
supportsExtension(extension: Any) -> bool
X.supportsExtension(extension) -> bool
Upstream PySide2 reference signatures (binding differences may apply):
supportsExtension(self, extension: PySide2.QtWidgets.QGraphicsItem.Extension) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#supportsExtension
tabChangesFocus
tabChangesFocus() -> bool
X.tabChangesFocus() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsTextItem::tabChangesFocus() const
Returns true if the Tab key will cause the widget to change focus; otherwise,
false is returned.
By default, this behavior is disabled, and this function will return false.
This function was introduced in Qt 4.5.
See also setTabChangesFocus().
Upstream PySide2 reference signatures (binding differences may apply):
tabChangesFocus(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#tabChangesFocus
textCursor
textCursor() -> Any
X.textCursor() -> PythonQt.QtGui.QTextCursor
Supplemental documentation: Qt 5 reference:
textCursor : QTextCursor
This property represents the visible text cursor in an editable text item.
By default, if the item's text has not been set, this property contains a null text cursor; otherwise it contains a text cursor placed at the start of the item's document.
Access functions:
| QTextCursor | textCursor() const |
|---|---|
| void | setTextCursor(const QTextCursor \&cursor) |
Upstream PySide2 reference signatures (binding differences may apply):
textCursor(self) -> PySide2.QtGui.QTextCursor
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#textCursor
textInteractionFlags
textInteractionFlags() -> Any
X.textInteractionFlags()
Supplemental documentation: Qt 5 reference:
Qt::TextInteractionFlags QGraphicsTextItem::textInteractionFlags() const
Returns the current text interaction flags.
See also setTextInteractionFlags().
Upstream PySide2 reference signatures (binding differences may apply):
textInteractionFlags(self) -> PySide2.QtCore.Qt.TextInteractionFlags
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#textInteractionFlags
textWidth
textWidth() -> float
X.textWidth() -> float
Supplemental documentation: Qt 5 reference:
qreal QGraphicsTextItem::textWidth() const
Returns the text width.
The width is calculated with the QTextDocument that QGraphicsTextItem keeps internally.
See also setTextWidth() and QTextDocument::textWidth().
Upstream PySide2 reference signatures (binding differences may apply):
textWidth(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#textWidth
toHtml
toHtml() -> str
X.toHtml() -> str
Supplemental documentation: Qt 5 reference:
QString QGraphicsTextItem::toHtml() const
Returns the item's text converted to HTML, or an empty QString if no text has been set.
See also setHtml().
Upstream PySide2 reference signatures (binding differences may apply):
toHtml(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#toHtml
toPlainText
toPlainText() -> str
X.toPlainText() -> str
Supplemental documentation: Qt 5 reference:
QString QGraphicsTextItem::toPlainText() const
Returns the item's text converted to plain text, or an empty QString if no text has been set.
See also setPlainText().
Upstream PySide2 reference signatures (binding differences may apply):
toPlainText(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#toPlainText
type
type() -> int
X.type() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QGraphicsTextItem::type() const
Reimplements: QGraphicsItem::type() const.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qgraphicstextitem.html#type
visibleChanged
visibleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsTextItem.visibleChanged; argument details are not documented.
widthChanged
widthChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsTextItem.widthChanged; argument details are not documented.
xChanged
xChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsTextItem.xChanged; argument details are not documented.
yChanged
yChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsTextItem.yChanged; argument details are not documented.
zChanged
zChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsTextItem.zChanged; argument details are not documented.