import QtQuick import QtQuick.Controls import QtQuick.Window Page { width: 600 height: 400 header: Label { text: qsTr("Page 1") font.pixelSize: Qt.application.font.pixelSize * 2 padding: 10 } Label { text: qsTr("Device pixel ratio = " + Screen.devicePixelRatio) anchors.horizontalCenter: parent.horizontalCenter } Slider { anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter } }