Skip to content

PythonQt.QtCore.QLine · declarations 001

Back to PythonQt.QtCore.QLine

dx

dx() -> int

X.dx() -> int

Supplemental documentation: Qt 5 reference:

int QLine::dx() const

Returns the horizontal component of the line's vector.

See also dy().

Upstream PySide2 reference signatures (binding differences may apply):

dx(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qline.html#dx

dy

dy() -> int

X.dy() -> int

Supplemental documentation: Qt 5 reference:

int QLine::dy() const

Returns the vertical component of the line's vector.

See also dx().

Upstream PySide2 reference signatures (binding differences may apply):

dy(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qline.html#dy

isNull

isNull() -> bool

X.isNull() -> bool

Supplemental documentation: Qt 5 reference:

bool QLine::isNull() const

Returns true if the line does not have distinct start and end points; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isNull(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qline.html#isNull

p1

p1() -> Any

X.p1() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

QPoint QLine::p1() const

Returns the line's start point.

See also setP1(), x1(), y1(), and p2().

Upstream PySide2 reference signatures (binding differences may apply):

p1(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qline.html#p1

p2

p2() -> Any

X.p2() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

QPoint QLine::p2() const

Returns the line's end point.

See also setP2(), x2(), y2(), and p1().

Upstream PySide2 reference signatures (binding differences may apply):

p2(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qline.html#p2

setLine

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

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

Supplemental documentation: Qt 5 reference:

void QLine::setLine(int x1, int y1, int x2, int y2)

Sets this line to the start in x1, y1 and end in x2, y2.

This function was introduced in Qt 4.4.

See also setP1(), setP2(), p1(), and p2().

Upstream PySide2 reference signatures (binding differences may apply):

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

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

setP1

setP1(p1: Any) -> None

X.setP1(p1)

Supplemental documentation: Qt 5 reference:

void QLine::setP1(const QPoint \&p1)

Sets the starting point of this line to p1.

This function was introduced in Qt 4.4.

See also setP2() and p1().

Upstream PySide2 reference signatures (binding differences may apply):

setP1(self, p1: PySide2.QtCore.QPoint) -> None

Source: https://doc.qt.io/archives/qt-5.15/qline.html#setP1

setP2

setP2(p2: Any) -> None

X.setP2(p2)

Supplemental documentation: Qt 5 reference:

void QLine::setP2(const QPoint \&p2)

Sets the end point of this line to p2.

This function was introduced in Qt 4.4.

See also setP1() and p2().

Upstream PySide2 reference signatures (binding differences may apply):

setP2(self, p2: PySide2.QtCore.QPoint) -> None

Source: https://doc.qt.io/archives/qt-5.15/qline.html#setP2

setPoints

setPoints(p1: Any, p2: Any) -> None

X.setPoints(p1, p2)

Supplemental documentation: Qt 5 reference:

void QLine::setPoints(const QPoint \&p1, const QPoint \&p2)

Sets the start point of this line to p1 and the end point of this line to p2.

This function was introduced in Qt 4.4.

See also setP1(), setP2(), p1(), and p2().

Upstream PySide2 reference signatures (binding differences may apply):

setPoints(self, p1: PySide2.QtCore.QPoint, p2: PySide2.QtCore.QPoint) -> None

Source: https://doc.qt.io/archives/qt-5.15/qline.html#setPoints

translate

translate(dx: Any, dy: Any) -> None

X.translate(dx, dy)

Supplemental documentation: Qt 5 reference:

void QLine::translate(const QPoint \&offset)

Translates this line by the given offset.

void QLine::translate(int dx, int dy)

This is an overloaded function.

Translates this line the distance specified by dx and dy.

Upstream PySide2 reference signatures (binding differences may apply):

translate(self, dx: int, dy: int) -> None
translate(self, p: PySide2.QtCore.QPoint) -> None

Source: https://doc.qt.io/archives/qt-5.15/qline.html#translate

translated

translated(dx: Any, dy: Any) -> Any

X.translated(dx, dy) -> PythonQt.QtCore.QLine

Supplemental documentation: Qt 5 reference:

QLine QLine::translated(const QPoint \&offset) const

Returns this line translated by the given offset.

This function was introduced in Qt 4.4.

QLine QLine::translated(int dx, int dy) const

This is an overloaded function.

Returns this line translated the distance specified by dx and dy.

This function was introduced in Qt 4.4.

Upstream PySide2 reference signatures (binding differences may apply):

translated(self, dx: int, dy: int) -> PySide2.QtCore.QLine
translated(self, p: PySide2.QtCore.QPoint) -> PySide2.QtCore.QLine

Source: https://doc.qt.io/archives/qt-5.15/qline.html#translated

x1

x1() -> int

X.x1() -> int

Supplemental documentation: Qt 5 reference:

int QLine::x1() const

Returns the x-coordinate of the line's start point.

See also p1().

Upstream PySide2 reference signatures (binding differences may apply):

x1(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qline.html#x1

x2

x2() -> int

X.x2() -> int

Supplemental documentation: Qt 5 reference:

int QLine::x2() const

Returns the x-coordinate of the line's end point.

See also p2().

Upstream PySide2 reference signatures (binding differences may apply):

x2(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qline.html#x2

y1

y1() -> int

X.y1() -> int

Supplemental documentation: Qt 5 reference:

int QLine::y1() const

Returns the y-coordinate of the line's start point.

See also p1().

Upstream PySide2 reference signatures (binding differences may apply):

y1(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qline.html#y1

y2

y2() -> int

X.y2() -> int

Supplemental documentation: Qt 5 reference:

int QLine::y2() const

Returns the y-coordinate of the line's end point.

See also p2().

Upstream PySide2 reference signatures (binding differences may apply):

y2(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qline.html#y2