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

Consider supporting OpacityMask with MultiEffect

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • None

    Description

      The mask in MultiEffect matches to ThresholdMask (https://doc.qt.io/qt-6/qml-qt5compat-graphicaleffects-thresholdmask.html) except that it has additional min & max threshold & spread and also invert property. Idea was that it would work also as simpler opacity mask by setting "maskThresholdMin: 0.5; maskSpreadAtMin: 1.0". But with closer look this doesn't match exactly to OpacityMask output.

      As OpacityMask is quite often used, consider extending MultiEffect API with "maskMode" property taking in Threshold/Opacity enums. Threshold is the default for compatibility. Then threshold & spread properties documentation should contain note "This property affects only when the maskMode is set to Threshold". Invert property should work for both masks.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            kagro Kaj Grönholm
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes