42 Q_PROPERTY(
QSize availableSize READ availableSize NOTIFY availableGeometryChanged)
44 Q_PROPERTY(
QSize availableVirtualSize READ availableVirtualSize NOTIFY virtualGeometryChanged)
46 Q_PROPERTY(
QRect availableGeometry READ availableGeometry NOTIFY availableGeometryChanged)
47 Q_PROPERTY(
QRect virtualGeometry READ virtualGeometry NOTIFY virtualGeometryChanged)
49 NOTIFY virtualGeometryChanged)
52 NOTIFY physicalDotsPerInchChanged)
54 NOTIFY physicalDotsPerInchChanged)
55 Q_PROPERTY(
qreal physicalDotsPerInch READ physicalDotsPerInch NOTIFY physicalDotsPerInchChanged)
56 Q_PROPERTY(
qreal logicalDotsPerInchX READ logicalDotsPerInchX NOTIFY logicalDotsPerInchChanged)
57 Q_PROPERTY(
qreal logicalDotsPerInchY READ logicalDotsPerInchY NOTIFY logicalDotsPerInchChanged)
58 Q_PROPERTY(
qreal logicalDotsPerInch READ logicalDotsPerInch NOTIFY logicalDotsPerInchChanged)
59 Q_PROPERTY(
qreal devicePixelRatio READ devicePixelRatio NOTIFY physicalDotsPerInchChanged)
60 Q_PROPERTY(
Qt::ScreenOrientation primaryOrientation READ primaryOrientation
61 NOTIFY primaryOrientationChanged)
62 Q_PROPERTY(
Qt::ScreenOrientation orientation READ orientation NOTIFY orientationChanged)
63 Q_PROPERTY(
Qt::ScreenOrientation nativeOrientation READ nativeOrientation)
79 QRect geometry() const;
81 QSizeF physicalSize() const;
83 qreal physicalDotsPerInchX() const;
84 qreal physicalDotsPerInchY() const;
85 qreal physicalDotsPerInch() const;
87 qreal logicalDotsPerInchX() const;
88 qreal logicalDotsPerInchY() const;
89 qreal logicalDotsPerInch() const;
91 qreal devicePixelRatio() const;
93 QSize availableSize() const;
94 QRect availableGeometry() const;
99 QSize virtualSize() const;
100 QRect virtualGeometry() const;
102 QSize availableVirtualSize() const;
103 QRect availableVirtualGeometry() const;
105 Qt::ScreenOrientation primaryOrientation() const;
106 Qt::ScreenOrientation orientation() const;
107 Qt::ScreenOrientation nativeOrientation() const;
109 int angleBetween(
Qt::ScreenOrientation
a,
Qt::ScreenOrientation
b) const;
113 bool isPortrait(
Qt::ScreenOrientation orientation) const;
114 bool isLandscape(
Qt::ScreenOrientation orientation) const;
116 QPixmap grabWindow(WId
window = 0,
int x = 0,
int y = 0,
int w = -1,
int h = -1);
118 qreal refreshRate() const;
123 void geometryChanged(const
QRect &geometry);
124 void availableGeometryChanged(const
QRect &geometry);
126 void physicalDotsPerInchChanged(
qreal dpi);
127 void logicalDotsPerInchChanged(
qreal dpi);
129 void primaryOrientationChanged(
Qt::ScreenOrientation orientation);
130 void orientationChanged(
Qt::ScreenOrientation orientation);
131 void refreshRateChanged(
qreal refreshRate);