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

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

XMLWordPrintable

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

      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();
              }
          }
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes