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

In QML onClosing() signal not fires when Window.close() used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0 Alpha
    • 5.3.1
    • None
    • Qt 5.3.1
      Debian Linux 7 x32
    • 0af228700e85167b9406193a38ea27584c6dc4d7

    Description

      The signal `onClosing` fires only when `Window` closed with x button.
      Using `Window.close()` has no effect.

      How to reproduce:

      Window {
          id: someWindow
          onClosing: {
              console.log("OnClosing fired");
          }
          Button {
              text: "Close"
              onClicked: {
                  someWindow.close();
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              folibis ruslan
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes