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

Window{} onClosing when not accepted it only minimzes the app and freezes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3
    • None
    • Android

    Description

      on Android Emulator, when try to quick the app by "back" button on NavigationBar via:

      Window {
          id: root
          visible: true
          
          onClosing: (close) => {
              close.accepted = false
              console.log("close prevented")
          }
      } 

      then I noticed the app goes down anyway... however after few tries i noticed the QT debugger is still connected and note that app died didnt appear, i figured out that app is actually only minimized... at some point when brought back up it continued at point where i minimized (so it didnt start from beginning like fresh run)... but this example only minimzes it and when bringing back up manualy it stays white and frozen, like its waiting for some input or whatever...

      UPDATE: if I am connected via debugger from QT to the emulator and run the app, then upon this "minimalization" and brought back, its white and frozen, and eventualy android says the app is dead... but when i just run simulator on my own withou QT at all, and run the applicaiton, minimize it by this close.accepted=false and then bring it back up (from minimalization), then app continues to work where i left it, not frozen 

      on Windows this works perfect, on Android (at least emulator, currently i dont have Android device) it works as described, attached video of androidemulator beahaviour

      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
            shokarta Jiri Zaloudek
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes