Results 1 to 2 of 2

Thread: QLinearGradient Coloring

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,330
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QLinearGradient Coloring

    It is going to use whatever the internal implementation is (maybe that's the chromatic circle, I don't know) to interpolate between stops. If you want some other interpolation scheme, you need to either write your own QGradient class. And since it looks like QGradient has no public methods for retrieving the color for a specific location, QBrush must have privileged access to QGradient (friend status) so you'll have to look into the QBrush and QGradient source code to find out in detail how to implement your own gradient class.

  2. The following user says thank you to d_stranz for this useful post:

    WSQtProgrammer (6th July 2012)

Similar Threads

  1. Coloring Circle
    By Jeneo W. in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2010, 04:39
  2. Problem with row coloring in qtableview
    By Tiansen in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2010, 18:13
  3. Regarding qlineargradient
    By jjbabu in forum Qt Programming
    Replies: 6
    Last Post: 15th April 2009, 09:21
  4. Coloring a QTableview column
    By Potch in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2009, 23:18
  5. Coloring of Radio Button
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd July 2008, 15:05

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.