[Interest] Draw a shadow around a Rectangle using DropShadow. Should be possible, right?

Till Oliver Knoll till.oliver.knoll at gmail.com
Wed Feb 5 17:09:01 CET 2014


Am 05.02.2014 um 16:35 schrieb Mark Gaiser <markg85 at gmail.com>:

>> ...
>> On one hand, it makes sense because the Image is smaller than the
>> RectangularGlow (so the Image is "inside" the RectangularGlow).
>> 
>> ...
> 
> I can't get it to work with a rectangle..
> 
> import QtQuick 2.0
> import QtGraphicalEffects 1.0
> 
> Rectangle {
>    width: 800
>    height: 600
> 
>    DropShadow {

The original example given had it the other way round: the rectangle within the "effect" (here: DropShadow).

Although I must admit that I have no clue about all this New Age declarative voodoo stuff ;)

Cheers,
  Oliver


More information about the Interest mailing list