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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.4.0 Alpha
    • Labels:
      None
    • Environment:
      Qt 5.3.1
      Debian Linux 7 x32
    • Commits:
      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

          For Gerrit Dashboard: QTBUG-40093
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              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