blob: 18712a7e2dbc0b1a52e4229b6f0d8a28c88b2a2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Window {
id: w
height: 100
width: 100
visible: true
Rectangle {
width: 50
height: 50
color: "blue"
anchors.centerIn: parent
}
Timer {
interval: 100
running: true
repeat: true
onTriggered: console.log("zoom", w.screen.devicePixelRatio)
}
}
|