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

back-button not processed by Qt when certain flags set on Main Window

    XMLWordPrintable

Details

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

    Description

      It's all described here

       

      When certain flags are set

      • Qt.WindowTitleHint
      • Qt.WA_TranslucentBackground
      • (~Qt.WA_ContentsMarginsRespectsSafeArea)

      events for back-button and possibly other bottom/system menu items are not dispatched at all. We've tried a plethora of options, none works. We've arrived to conclusion that the culprit is the presence of ANY of the flags mentioned above.

       

      We've tried a couple of recent devices by Samsung/ Huawei / HTC all are affected.

       

      What's most likely wrong: as described within the thread mentioned above we haven't dived deeper due to a lack of debug-symbols for private QT's internals , but pin-pointed that  QGuiApplicationPrivate:processKeyEvent() gets fired in all cases. From the first looks there's lots of custom processing related to back-button (when targeting Android); we didn't took our time to enable for stepping through these instructions but for some reason, when the above flags are present, the event is not propagated  further i.e. the notify() never gets called.

       

      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
            vega4 Rafal Skowonski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes