aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickdialogs/dialogAsPopupWindow/Main.qml
blob: ef6d8c16dc8dc357e0e5da83c9afb9e438551699 (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
26
27
28
29
30
31
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick.Controls

Window {
    width: 300
    height: 200
    visible: true
    title: "Window"

    Dialog {
        visible: true
        popupType: Popup.Window
        focus: true
        title: "Dialog"

        Label {
            anchors.fill: parent
            text: "Move and resize me!"
        }
    }
    Label {
        anchors.fill: parent
        text: "Move and resize the child dialog using mouse."
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        wrapMode: Text.WordWrap
    }
}