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

MouseArea helper for QtQuick Shapes

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.10.1
    • Fix Version/s: 5.11.0
    • Component/s: Quick: 2D Renderer
    • Labels:
      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

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              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