Results 1 to 4 of 4

Thread: Rotating Gradient

  1. #1
    Join Date
    Jun 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Rotating Gradient

    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

  2. #2
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Rotating Gradient

    Got to keep the loonies on the path ...

  3. #3
    Join Date
    Jun 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Rotating Gradient

    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.

  4. #4
    Join Date
    Nov 2011
    Posts
    17
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Rotating Gradient

    Hi everbody, can QML make gradient from centre to border of the element in omni directional

Similar Threads

  1. background gradient with stylesheets
    By martinn in forum Qt Programming
    Replies: 6
    Last Post: 28th February 2010, 15:37
  2. getting gradient colors
    By venkat.godavarthi in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2009, 13:36
  3. Gradient in histogram
    By giusepped in forum Qwt
    Replies: 1
    Last Post: 1st August 2009, 11:48
  4. QPainter Gradient
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2008, 12:53
  5. gradient background
    By drkbkr in forum Qt Programming
    Replies: 4
    Last Post: 30th March 2006, 16:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.