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

Android: Impossible to override back key behavior before window is shown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.4.0
    • 5.3.0
    • QPA
    • None
    • Android
    • c0556d92f3415b478da4aff24f6f5545df394983

      Before the window is shown, the default reaction to the back key is to call QCoreApplication::quit(). There is no way for the user to override this, so if they do not want the application to quit when the user hits the back key, they have no way of achieving that. In addition, there are crashes triggered when quit() is called too early, which is a separate but related issue.

      Would it perhaps be better to just pass back key events to the application when there is no window showing?

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

            tvete Paul Olav Tvete
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes