Is there a way to rotate the gradient in QML, so it doesn't go from edge to edge? For example, can you make it go from red in one corner of a square to blue in the opposite corner?
Thanks
Is there a way to rotate the gradient in QML, so it doesn't go from edge to edge? For example, can you make it go from red in one corner of a square to blue in the opposite corner?
Thanks
Yes, have a look at this http://doc.qt.nokia.com/4.7-snapshot/qml-rectangle.html
Got to keep the loonies on the path ...
In those they rotate the rectangle and the gradient rotates with it. The goal I am trying to achieve is to have the gradient begin at one corner of the rectangle and finish at the opposite. The key part is from corner to corner, not edge to edge.
Hi everbody, can QML make gradient from centre to border of the element in omni directional
Bookmarks