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

Consider supporting OpacityMask with MultiEffect

XMLWordPrintable

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes