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

MouseArea helper for QtQuick Shapes

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.11.0
    • 5.10.1
    • Quick: 2D Renderer
    • None

      Will there be scope for adding mouse area to the QML Shapes Feature added in 5.10?  Or alternatively a helper item to identify if a point lies within a closed shape path, or line?

      MouseArea only applies to the bounding box of the PathShape. In QGraphicsView, it was possible to use the 

      QGraphicsPathItem::contains
      

      in order to determine if a mouse pointer was within the created polygon. It is quite an essential feature, in order to add interactivity e.g. creating graphs,figures for scientific applications. 

      Hopefully, something like this may be considerd in the future?

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luke_parry Luke Parry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes