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

Menu closePolicy Popup.CloseOnPressOutside does not work on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.9.1
    • Quick: Controls 2
    • None
    • Qt Creator 4.4 beta 64bits

      Windows 10 64 bits.

      Qt 5.9.1 Android ARMv7 Release
    • Android

    Description

      Menu closePolicy Popup.CloseOnPressOutside doesn't work on Android.
      This issue is related to QtQuick Controls 2.

      It works as expected under Windows, but if you press outside the menu popup under Android, nothing happens. 

      Follow a simple code as sample below: 

      import QtQuick 2.9
      import QtQuick.Controls 2.2
      import QtQuick.Layouts 1.3
      
      Item{
       Menu{
         id: overflowMenu
         x: parent.width - width
         closePolicy: Popup.CloseOnPressOutside | Popup.CloseOnEscape
         transformOrigin: Menu.TopRight
         MenuItem{
           text: qsTr('Help') }
         }
       }
      

       

      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
            tezine Bruno Tezine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes