qt6-bb10/qtdeclarative/tests/auto/quickcontrols/qquickpopup/data/cursor.qml

26 lines
532 B
QML

// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls
ApplicationWindow {
width: 400
height: 400
property alias popup: popup
property alias textField: textField
TextField {
id: textField
}
Popup {
id: popup
x: textField.x + textField.width / 2
y: textField.y + textField.height / 2 - height / 2
width: 100
height: 100
popupType: Popup.Item
}
}