java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QObject
io.qt.widgets.QGraphicsObject
io.qt.widgets.QGraphicsTextItem
- All Implemented Interfaces:
QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
,QGraphicsItem
public class QGraphicsTextItem extends QGraphicsObject
Text item that you can add to a QGraphicsScene to display formatted text
Java wrapper for Qt class QGraphicsTextItem
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
Nested classes/interfaces inherited from interface io.qt.widgets.QGraphicsItem
QGraphicsItem.BlockedByModalPanelInfo, QGraphicsItem.CacheMode, QGraphicsItem.Extension, QGraphicsItem.GraphicsItemChange, QGraphicsItem.GraphicsItemFlag, QGraphicsItem.GraphicsItemFlags, QGraphicsItem.Impl, QGraphicsItem.MemberAccess, QGraphicsItem.PanelModality
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal1<String>
linkActivated
QObject.Signal1<String>
linkHovered
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.widgets.QGraphicsObject
childrenChanged, enabledChanged, heightChanged, opacityChanged, parentChanged, rotationChanged, scaleChanged, visibleChanged, widthChanged, xChanged, yChanged, zChanged
-
Constructor Summary
Constructors Modifier Constructor Description QGraphicsTextItem()
Overloaded constructor forQGraphicsTextItem(io.qt.widgets.QGraphicsItem)
withparent = null
.protected
QGraphicsTextItem(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QGraphicsTextItem(QtObject.QPrivateConstructor p)
Constructor for internal use only.QGraphicsTextItem(QGraphicsItem parent)
QGraphicsTextItem(String text)
Overloaded constructor forQGraphicsTextItem(java.lang.String, io.qt.widgets.QGraphicsItem)
withparent = null
.QGraphicsTextItem(String text, QGraphicsItem parent)
-
Method Summary
Methods inherited from class io.qt.widgets.QGraphicsObject
acceptDrops, acceptedMouseButtons, acceptHoverEvents, acceptTouchEvents, addToIndex, advance, boundingRegion, boundingRegionGranularity, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithItem, collidesWithPath, collidesWithPath, collidingItems, collidingItems, commonAncestorItem, cursor, data, deviceTransform, effectiveOpacity, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, event, filtersChildEvents, flags, focusItem, focusProxy, focusScopeItem, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, graphicsEffect, group, handlesChildEvents, hasCursor, hasFocus, hide, inputMethodHints, installSceneEventFilter, isActive, isAncestorOf, isBlockedByModalPanel, isClipped, isEnabled, isObscured, isObscured, isObscured, isPanel, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemChange, itemTransform, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapRectFromItem, mapRectFromItem, mapRectFromParent, mapRectFromParent, mapRectFromScene, mapRectFromScene, mapRectToItem, mapRectToItem, mapRectToParent, mapRectToParent, mapRectToScene, mapRectToScene, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, moveBy, opacity, paint, panel, panelModality, parentItem, parentObject, parentWidget, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotation, scale, scene, sceneBoundingRect, sceneEventFilter, scenePos, sceneTransform, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptTouchEvents, setActive, setBoundingRegionGranularity, setCacheMode, setCacheMode, setCursor, setData, setEnabled, setFiltersChildEvents, setFlag, setFlag, setFlags, setFlags, setFocus, setFocus, setFocusProxy, setGraphicsEffect, setGroup, setHandlesChildEvents, setInputMethodHints, setInputMethodHints, setOpacity, setPanelModality, setParentItem, setPos, setPos, setRotation, setScale, setSelected, setToolTip, setTransform, setTransform, setTransformations, setTransformOriginPoint, setTransformOriginPoint, setVisible, setX, setY, setZValue, show, stackBefore, toGraphicsObject, toolTip, topLevelItem, topLevelWidget, toString, transform, transformations, transformOriginPoint, ungrabGesture, ungrabKeyboard, ungrabMouse, unsetCursor, update, update, update, updateMicroFocus, wheelEvent, window, x, y, zValue
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, eventFilter, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
linkActivated
-
linkHovered
-
-
Constructor Details
-
QGraphicsTextItem
public QGraphicsTextItem()Overloaded constructor for
QGraphicsTextItem(io.qt.widgets.QGraphicsItem)
withparent = null
. -
QGraphicsTextItem
-
QGraphicsTextItem
Overloaded constructor for
QGraphicsTextItem(java.lang.String, io.qt.widgets.QGraphicsItem)
withparent = null
. -
QGraphicsTextItem
-
QGraphicsTextItem
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QGraphicsTextItem
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
adjustSize
-
defaultTextColor
-
document
-
font
-
openExternalLinks
-
setDefaultTextColor
-
setDocument
-
setFont
-
setHtml
-
setOpenExternalLinks
-
setPlainText
-
setTabChangesFocus
-
setTextCursor
-
setTextInteractionFlags
Overloaded function for
setTextInteractionFlags(io.qt.core.Qt.TextInteractionFlags)
. -
setTextInteractionFlags
-
setTextWidth
-
tabChangesFocus
-
textCursor
-
textInteractionFlags
-
textWidth
-
toHtml
-
toPlainText
-
type
-
boundingRect
- Specified by:
boundingRect
in interfaceQGraphicsItem
- Specified by:
boundingRect
in classQGraphicsObject
-
contains
- Specified by:
contains
in interfaceQGraphicsItem
- Overrides:
contains
in classQGraphicsObject
-
contextMenuEvent
- Overrides:
contextMenuEvent
in classQGraphicsObject
-
dragEnterEvent
- Overrides:
dragEnterEvent
in classQGraphicsObject
-
dragLeaveEvent
- Overrides:
dragLeaveEvent
in classQGraphicsObject
-
dragMoveEvent
- Overrides:
dragMoveEvent
in classQGraphicsObject
-
dropEvent
- Overrides:
dropEvent
in classQGraphicsObject
-
extension
- Overrides:
extension
in classQGraphicsObject
-
focusInEvent
- Overrides:
focusInEvent
in classQGraphicsObject
-
focusOutEvent
- Overrides:
focusOutEvent
in classQGraphicsObject
-
hoverEnterEvent
- Overrides:
hoverEnterEvent
in classQGraphicsObject
-
hoverLeaveEvent
- Overrides:
hoverLeaveEvent
in classQGraphicsObject
-
hoverMoveEvent
- Overrides:
hoverMoveEvent
in classQGraphicsObject
-
inputMethodEvent
- Overrides:
inputMethodEvent
in classQGraphicsObject
-
inputMethodQuery
- Overrides:
inputMethodQuery
in classQGraphicsObject
-
isObscuredBy
- Specified by:
isObscuredBy
in interfaceQGraphicsItem
- Overrides:
isObscuredBy
in classQGraphicsObject
-
keyPressEvent
- Overrides:
keyPressEvent
in classQGraphicsObject
-
keyReleaseEvent
- Overrides:
keyReleaseEvent
in classQGraphicsObject
-
mouseDoubleClickEvent
- Overrides:
mouseDoubleClickEvent
in classQGraphicsObject
-
mouseMoveEvent
- Overrides:
mouseMoveEvent
in classQGraphicsObject
-
mousePressEvent
- Overrides:
mousePressEvent
in classQGraphicsObject
-
mouseReleaseEvent
- Overrides:
mouseReleaseEvent
in classQGraphicsObject
-
opaqueArea
- Specified by:
opaqueArea
in interfaceQGraphicsItem
- Overrides:
opaqueArea
in classQGraphicsObject
-
paint
@QtUninvokable public void paint(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget)- Specified by:
paint
in interfaceQGraphicsItem
- Specified by:
paint
in classQGraphicsObject
-
sceneEvent
- Overrides:
sceneEvent
in classQGraphicsObject
-
setExtension
- Overrides:
setExtension
in classQGraphicsObject
-
shape
- Specified by:
shape
in interfaceQGraphicsItem
- Overrides:
shape
in classQGraphicsObject
-
supportsExtension
- Overrides:
supportsExtension
in classQGraphicsObject
-