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

MultiEffect shadowColor cannot be used for glow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.2
    • None
    • Linux/Wayland

    Description

      Using Qt5Compat.GraphicalEffects, it's possible to make something glow with a specific colour:

      layer.effect: Glow {
          radius: 6
          samples: (radius * 2) + 1
          spread: 0.5
          color: "white"
      }
      

      When attempting to reproduce this using QtQuick.Effects' MultiEffect, the colour only appears black:

      layer.effect: MultiEffect {
          autoPaddingEnabled: true
          shadowEnabled: true
          shadowBlur: 1.0
          shadowColor: "white"
      }
      

      The documentation for MultiEffect suggests that shadowColor can be used to simulate a glow effect, but this is not possible.

      Here is a comparison of shadowColor as "white" (left) and "black" (right):

      and the desired appearance in the Qt5Compat.GraphicalEffects' glow:

      Attachments

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

        Activity

          People

            kagro Kaj Grönholm
            olib Oliver Beard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes