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

MouseArea helper for QtQuick Shapes

    XMLWordPrintable

Details

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

    Description

      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?

      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
            luke_parry Luke Parry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes