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

Add mask property for Item

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.0
    • Some future release
    • None
    • all

    Description

      QWindow and QWidget have mask property to mask rendering and mouse events.
      With Qt Quick, it's possible to mask window using QQuickView::setMask in cpp (like https://bugreports.qt-project.org/browse/QTBUG-20222 or https://bugreports.qt-project.org/browse/QTBUG-11258) or to mask rendering using shader effect (like https://bugreports.qt-project.org/browse/QTBUG-13970), but it's not possible to mask mouse events on items.
      This functionality was previously suggested (https://bugreports.qt-project.org/browse/QTBUG-20524 or https://bugreports.qt-project.org/browse/QTBUG-6862) but was limited to MouseArea or Image items.
      Maybe adding mask propperty to mask rendering and mouse events in all Item ?

      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
              gbdivers Guillaume Belz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes