QScreen
QScreen is a class in the QtGui module of the Qt application framework. It represents a display device in a multi-monitor environment and provides access to a screen’s geometric and perceptual properties. Each screen object exposes information such as its geometry in pixels, available geometry, physical size in millimeters, color depth, refresh rate, and DPI-related metrics, as well as the device pixel ratio used for HiDPI scaling. QScreen is a QObject-derived class and can emit signals when its properties change, enabling responsive UI updates when displays are added, removed, or settings change.
Key properties and methods commonly used with QScreen include geometry(), availableGeometry(), and size() to determine layout
QScreen is part of modern multi-screen management in Qt. Applications typically obtain screen objects through QGuiApplication::primaryScreen()
Example usage commonly includes retrieving the primary screen to query geometry or DPI, e.g., QScreen* screen =