File: closeOnEscapeWithVisiblePopup.qml

package info (click to toggle)
qtquickcontrols2-opensource-src 5.15.15%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 32,796 kB
  • sloc: cpp: 57,625; javascript: 142; ansic: 136; makefile: 23
file content (16 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 2.13
import QtQuick.Window 2.13
import QtQuick.Controls 2.13

Window {
    width: 400
    height: 400
    Popup {
        objectName: "popup"
        visible: true
        width: 200
        height: 200
        anchors.centerIn: parent
        closePolicy: Popup.CloseOnEscape
    }
}