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

simplify the MaskedMouseArea example

XMLWordPrintable

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

      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?

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

              Created:
              Updated:

                There are no open Gerrit changes