Skip to content

PythonQt.QtGui.QGraphicsLineItem · declarations 001

Back to PythonQt.QtGui.QGraphicsLineItem

boundingRect

boundingRect() -> Any

X.boundingRect() -> PythonQt.QtCore.QRectF

Supplemental documentation: Qt 5 reference:

[override virtual] QRectF QGraphicsLineItem::boundingRect() const

Reimplements: QGraphicsItem::boundingRect() const.

Upstream PySide2 reference signatures (binding differences may apply):

boundingRect(self) -> PySide2.QtCore.QRectF

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#boundingRect

contains

contains(point: Any) -> bool

X.contains(point) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QGraphicsLineItem::contains(const QPointF \&point) const

Reimplements: QGraphicsItem::contains(const QPointF \&point) const.

Upstream PySide2 reference signatures (binding differences may apply):

contains(self, point: PySide2.QtCore.QPointF) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#contains

extension

extension(variant: Any) -> Any

X.extension(variant) -> object

Upstream PySide2 reference signatures (binding differences may apply):

extension(self, variant: typing.Any) -> typing.Any

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#extension

isObscuredBy

isObscuredBy(item: Any) -> bool

X.isObscuredBy(item) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QGraphicsLineItem::isObscuredBy(const QGraphicsItem *item) const

Reimplements: QGraphicsItem::isObscuredBy(const QGraphicsItem *item) const.

Upstream PySide2 reference signatures (binding differences may apply):

isObscuredBy(self, item: PySide2.QtWidgets.QGraphicsItem) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#isObscuredBy

line

line() -> Any

X.line() -> PythonQt.QtCore.QLineF

Supplemental documentation: Qt 5 reference:

QLineF QGraphicsLineItem::line() const

Returns the item's line, or a null line if no line has been set.

See also setLine().

Upstream PySide2 reference signatures (binding differences may apply):

line(self) -> PySide2.QtCore.QLineF

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#line

opaqueArea

opaqueArea() -> Any

X.opaqueArea() -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

[override virtual] QPainterPath QGraphicsLineItem::opaqueArea() const

Reimplements: QGraphicsItem::opaqueArea() const.

Upstream PySide2 reference signatures (binding differences may apply):

opaqueArea(self) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#opaqueArea

paint

paint(painter: Any, option: Any, widget: Any) -> None

X.paint(painter, option, widget)

Supplemental documentation: Qt 5 reference:

[override virtual] void QGraphicsLineItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget \= nullptr)

Reimplements: QGraphicsItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget).

Upstream PySide2 reference signatures (binding differences may apply):

paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[PySide2.QtWidgets.QWidget]=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#paint

pen

pen() -> Any

X.pen() -> PythonQt.QtGui.QPen

Supplemental documentation: Qt 5 reference:

QPen QGraphicsLineItem::pen() const

Returns the item's pen, or a black solid 0-width pen if no pen has been set.

See also setPen().

Upstream PySide2 reference signatures (binding differences may apply):

pen(self) -> PySide2.QtGui.QPen

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#pen

setLine

setLine(x1: Any, y1: Any, x2: Any, y2: Any) -> None

X.setLine(x1, y1, x2, y2)

Supplemental documentation: Qt 5 reference:

void QGraphicsLineItem::setLine(const QLineF \&line)

Sets the item's line to be the given line.

See also line().

void QGraphicsLineItem::setLine(qreal x1, qreal y1, qreal x2, qreal y2)

This is an overloaded function.

Sets the item's line to be the line between (x1, y1) and (x2, y2).

This is the same as calling setLine(QLineF(x1, y1, x2, y2)).

Upstream PySide2 reference signatures (binding differences may apply):

setLine(self, line: PySide2.QtCore.QLineF) -> None
setLine(self, x1: float, y1: float, x2: float, y2: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#setLine

setPen

setPen(pen: Any) -> None

X.setPen(pen)

Supplemental documentation: Qt 5 reference:

void QGraphicsLineItem::setPen(const QPen \&pen)

Sets the item's pen to pen. If no pen is set, the line will be painted using a black solid 0-width pen.

See also pen().

Upstream PySide2 reference signatures (binding differences may apply):

setPen(self, pen: PySide2.QtGui.QPen) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicslineitem.html#setPen

shape

shape() -> Any

X.shape() -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

[override virtual] QPainterPath QGraphicsLineItem::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/qgraphicslineitem.html#shape

type

type() -> int

X.type() -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QGraphicsLineItem::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/qgraphicslineitem.html#type