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

we need to move popup event forwarding logic from QWidgetWindow::handleMouseEvent() to QGuiApplication

    XMLWordPrintable

Details

    Description

      It will be useful to have it working the same way in both Widgets and QtQuick (and QQControls 2). The infamous use case is when you press on a menu item or a combo box, a popup opens (a submenu or the drop-down box), and now you can mouse over an item and release. For that to work, the usual way is that the window on which the mouse press occurs keeps track of the fact that there's a popup window, and for any mouse or touch update (movement) which occurs within the bounds of the popup, it forwards the event to the popup. This behavior ends with the release.

      In the KDE Plasma Desktop project, they have similar use cases in file-management scenarios where you can grab an icon, drag it over a folder icon, and while hovering the folder opens up in another window, and you can drop the icon there. They want to accomplish this with Pointer Handlers, so it ends up being related to adding DnD support to DragHandler.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-68080
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change