[solved] problem with the DropShadow
QML and Qt Quick
6
Posts
2
Posters
1.2k
Views
1
Watching
-
wrote on 18 Sept 2014, 18:24 last edited by
i created a DropShadow for an image, but i want it to be like a gradient not a solid color:
!http://i.imgur.com/FAJG17f.png(IMG)!
the code:
@DropShadow
{
anchors.fill: background
source: background
horizontalOffset: -50
verticalOffset: 0
radius: 8.0
samples: 16
color: "#000000"
}
@ -
wrote on 19 Sept 2014, 07:22 last edited by
Hey, i had the same problem. Try it so:
@
DropShadow
{
anchors.fill: background
source: background
horizontalOffset: -50
verticalOffset: 0
radius: 8.0
samples: 16
color: "#000000"
transparentBorder: true
}
@
I don't know why but it helps :) -
wrote on 19 Sept 2014, 09:27 last edited by
the shadow now is gone :-(
-
wrote on 19 Sept 2014, 10:32 last edited by
@
Rectangle {
width: 640
height: 480
color: "white"Rectangle { id: blackRect width: 200 height: 50 color: "red" visible: false } DropShadow { id: shadow anchors.fill: blackRect horizontalOffset: 0 verticalOffset: 5 radius: 12 samples: 24 spread: 0.0 color: "#000000" transparentBorder: true; source: blackRect } }
@
-
wrote on 20 Sept 2014, 19:10 last edited by
PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT’S SOLVED.
-
wrote on 21 Sept 2014, 11:19 last edited by
thank you guys
1/6