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

simplify the MaskedMouseArea example

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      Now that we have QQuickItem::containsMask (see QTBUG-20524 and https://codereview.qt-project.org/#/c/211550/ ), it's no longer necessary to subclass QQuickMouseArea to give it a mask shape. So this example examples/quick/customitems/maskedmousearea ought to show how to use an image as a mask object: just implement contains() and set it as the containsMask on a normal MouseArea.

      Alternatively maybe we should provide that ImageMask type in Qt Quick, rather than only in an example?

      Attachments

        Issue Links

          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
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes