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

Add mask property for Item

XMLWordPrintable

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

      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 ?

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes