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

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

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes