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

Mark Gaiser markg85 at gmail.com
Wed Feb 5 17:19:50 CET 2014


On Wed, Feb 5, 2014 at 5:09 PM, Till Oliver Knoll
<till.oliver.knoll at gmail.com> wrote:
> 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 ;)

Nahh, that's just the root rectangle. The one below is following the
example from Sze.



More information about the Interest mailing list