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

PathView should be able to forward unused mouse events to MouseAreas behind

    XMLWordPrintable

Details

    Description

      We use QML for a fullscreen desktop project where most of the screen is used for viewing items on a map. An important aspect of the application is to place new items on this map, and instead of using a good old list for new items, we place them along two of the edges using PathView.

      Now, to be able to interact with the whole path (flicking, clicking elements and dragging them), the size of the PathView element must be set to the bounding rectangle of the path. Unfortunately this means that now no mouse events will reach the map, or any other UI elements being overlapped by the paths rectangle. Some of this can be fixed by more clever ordering, but it will be a real kludge to try to fix it for the PathView-over-map usecase.

      My suggestion would be to let PathView have either a bool saying whether uncaught events should be passed through to whatever is below (enough for us) or the possibility to set which item(s) should get the superfluous events.

      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
            larsivi Lars Ivar Igesund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes