Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79326

Dialog is not getting closed with Esc key press even with closePolicy set to Popup.CloseOnEscape

    XMLWordPrintable

Details

    • 21e3c3eff23c34f9e4b85794e336380d9f6815f6 (qt/qtquickcontrols2/5.13)

    Description

      A dialog is not closing with Esc key press even if its closePolicy is set to Popup.CloseOnEscape.

          Dialog {
              id: myDialog
              visible: true
              title: "Red sky dialog"
              x: 100
              y: 150
              width: 200
              height: 200
              focus: true
              closePolicy: Popup.CloseOnEscape | Popup.NoAutoClose
              standardButtons: Dialog.Ok | Dialog.Cancel
      
              // Component.onCompleted: visible=true  // Works fine if visible is set to true here
          }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes