QScreen — Qt for Python
doc.qt.io › qtforpython-5 › PySide2PySide2.QtGui.QScreen.devicePixelRatio() ¶. Return type. float. This property holds the screen’s ratio between physical pixels and device-independent pixels. Returns the ratio between physical pixels and device-independent pixels for the screen. Common values are 1.0 on normal displays and 2.0 on “retina” displays.
QPixmap — Qt for Python
doc.qt.io › qtforpython-5 › PySide2PySide2.QtGui.QPixmap. This is an overloaded function. Returns a deep copy of the subset of the pixmap that is specified by the rectangle QRect ( x, y, width, height). PySide2.QtGui.QPixmap.createHeuristicMask ([clipTight=true]) ¶ Parameters. clipTight – bool. Return type. PySide2.QtGui.QBitmap. Creates and returns a heuristic mask for this ...