aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols2/qquickmenu/data/scrollableWithFixedHeight.qml
blob: 1156d30aefc2dd5d88e27a1d4d38b2422bae1d11 (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import QtQuick.Controls
import QtQuick.Window

Window {
    width: 300
    height: 300

    property alias menu: menu

    Menu {
        id: menu
        anchors.centerIn: parent
        height: 100
        visible: true
        Repeater {
            model: 10
            delegate: MenuItem {
                objectName: text
                text: (index + 1)
            }
        }
    }
}