Special QGradient
-
I have a circle shape that I want to color/fill with a gradients. The center of the circle should be dark, and how further out you move in circle, the lighter the color gets (something like the sun - dark in the middle, and lighter outside).
The gradients available are LinearGradient, RadialGradient, ConicalGradient.
But I can't get it right to use these gradients for my purpose.Any idea?
-
it can be done with the radial gradient with the default pad spread. you can play with the gradient demo that is available with Qt installation and chk this out.
set the focal points to the center, select pad spread and set the correct stop points .. you will get exactly what you've described above
-
Thank you very much, I will try that.