Skip to content

PythonQt.QtGui.QScreen · declarations 002

Back to PythonQt.QtGui.QScreen

transformBetween

transformBetween(a: Any, b: Any, target: Any) -> Any

X.transformBetween(a, b, target) -> PythonQt.QtGui.QTransform

Supplemental documentation: Qt 5 reference:

QTransform QScreen::transformBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect \&target) const

Convenience function to compute a transform that maps from the coordinate system defined by orientation a into the coordinate system defined by orientation b and target dimensions target.

Example, a is Qt::Landscape, b is Qt::Portrait, and target is QRect(0, 0, w, h) the resulting transform will be such that the point QPoint(0, 0) is mapped to QPoint(0, w), and QPoint(h, w) is mapped to QPoint(0, h). Thus, the landscape coordinate system QRect(0, 0, h, w) is mapped (with a 90 degree rotation) into the portrait coordinate system QRect(0, 0, w, h).

Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation().

Upstream PySide2 reference signatures (binding differences may apply):

transformBetween(self, a: PySide2.QtCore.Qt.ScreenOrientation, b: PySide2.QtCore.Qt.ScreenOrientation, target: PySide2.QtCore.QRect) -> PySide2.QtGui.QTransform

Source: https://doc.qt.io/archives/qt-5.15/qscreen.html#transformBetween

virtualGeometry instance-attribute

virtualGeometry: QRect

Qt 5 reference:

virtualGeometry : const QRect

This property holds the pixel geometry of the virtual desktop to which this screen belongs

Returns the pixel geometry of the virtual desktop corresponding to this screen.

This is the union of the virtual siblings' individual geometries.

Access functions:

QRect virtualGeometry() const

Notifier signal:

void virtualGeometryChanged(const QRect \&rect)

See also virtualSiblings().

Source: https://doc.qt.io/archives/qt-5.15/qscreen.html#virtualGeometry

virtualGeometryChanged

virtualGeometryChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QScreen.virtualGeometryChanged; argument details are not documented.

virtualSiblings

virtualSiblings() -> tuple

X.virtualSiblings() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QScreen *> QScreen::virtualSiblings() const

Get the screen's virtual siblings.

The virtual siblings are the screen instances sharing the same virtual desktop. They share a common coordinate system, and windows can freely be moved or positioned across them without having to be re-created.

Upstream PySide2 reference signatures (binding differences may apply):

virtualSiblings(self) -> typing.List[PySide2.QtGui.QScreen]

Source: https://doc.qt.io/archives/qt-5.15/qscreen.html#virtualSiblings

virtualSize instance-attribute

virtualSize: QSize

Qt 5 reference:

virtualSize : const QSize

This property holds the pixel size of the virtual desktop to which this screen belongs

Returns the pixel size of the virtual desktop corresponding to this screen.

This is the combined size of the virtual siblings' individual geometries.

Access functions:

QSize virtualSize() const

Notifier signal:

void virtualGeometryChanged(const QRect \&rect)

See also virtualSiblings().

Source: https://doc.qt.io/archives/qt-5.15/qscreen.html#virtualSize