Class: QgsScreenHelper¶
A utility class for dynamic handling of changes to screen properties.
Added in version 3.28.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Methods
Returns the current screen available geometry in pixels. |
|
Returns the screen that the parent widget appears on, or |
|
Returns the current screen DPI for the screen that the parent widget appears on. |
|
Returns the window handle for the window the parent widget is associated with, or |
Signals
Emitted whenever the available geometry of the screen associated with the widget is changed. |
|
Emitted whenever the screen dpi associated with the widget is changed. |
- class qgis.gui.QgsScreenHelper[source]¶
Bases:
QObject- __init__(parent: QWidget | None)
Constructor for QgsScreenHelper for the specified parent
widget.- Parameters:
parent (Optional[QWidget])
- availableGeometry(self) QRect[source]¶
Returns the current screen available geometry in pixels.
The available geometry is the geometry excluding window manager reserved areas such as task bars and system menus.
See also
- Return type:
QRect
- signal availableGeometryChanged(geometry: QRect)[source]¶
Emitted whenever the available geometry of the screen associated with the widget is changed.
See also
- Parameters:
geometry (QRect)
- screen(self) QScreen | None[source]¶
Returns the screen that the parent widget appears on, or
None.- Return type:
Optional[QScreen]
- screenDpi(self) float[source]¶
Returns the current screen DPI for the screen that the parent widget appears on.
See also
- Return type:
float