blob: 79563fab460cdd8ebf6b30714a79750ac59b69a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
//! [document]
import QtQuick 2.0
Rectangle {
width: 300; height: 55
color: Qt.application.active ? "white" : "lightgray"
Text {
text: "Application " + (Qt.application.active ? "active" : "inactive")
opacity: Qt.application.active ? 1.0 : 0.5
anchors.centerIn: parent
}
}
//! [document]
|