summaryrefslogtreecommitdiffstats
path: root/examples/demos/coffee/main.qml
blob: 9e3c89a87e3b9651594119a18a91a7d0f2f565c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Controls.Basic
//! [Set application window size]
ApplicationWindow {
    visible: true
    width: 1000
    height: 600
    title: qsTr("Coffee")
//! [Set application window size]
    ApplicationFlow {
        width: parent.width
        height: parent.height
        mode: (Screen.height > Screen.width) ? "portrait" : "landscape"
    }
}