14 initFromJsonObject(screenDescription);
39 return m_physicalSize;
49 return QDpi(100, 100);
59 return m_nativeOrientation;
77void QEglFSEmulatorScreen::initFromJsonObject(
const QJsonObject &description)
87 m_description =
value.toString();
90 if (!
value.isUndefined() &&
value.isObject()) {
108 m_depth =
value.toInt();
115 if (!
value.isUndefined() &&
value.isObject()) {
120 value = physicalSizeObject.
value(
"height"_L1);
130 value = description.
value(
"nativeOrientation"_L1);
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
int depth() const override
Reimplement in subclass to return current depth of the screen.
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
Qt::ScreenOrientation nativeOrientation() const override
Reimplement this function in subclass to return the native orientation of the screen,...
QString name() const override
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QRect rawGeometry() const override
QEglFSEmulatorScreen(const QJsonObject &screenDescription)
Format
The following image formats are available in Qt.
\inmodule QtCore\reentrant
QJsonValue value(const QString &key) const
Returns a QJsonValue representing the value for the key key.
\inmodule QtCore\reentrant
double toDouble(double defaultValue=0) const
Converts the value to a double and returns it.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr void setWidth(int w) noexcept
Sets the width of the rectangle to the given width.
constexpr void setX(int x) noexcept
Sets the left edge of the rectangle to the given x coordinate.
constexpr QSize size() const noexcept
Returns the size of the rectangle.
constexpr void setHeight(int h) noexcept
Sets the height of the rectangle to the given height.
constexpr void setY(int y) noexcept
Sets the top edge of the rectangle to the given y coordinate.
constexpr void setHeight(qreal h) noexcept
Sets the height to the given finite height.
constexpr void setWidth(qreal w) noexcept
Sets the width to the given finite width.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QPair< qreal, qreal > QDpi