Results 1 to 3 of 3

Thread: How to get the specified position's QColor in QLinearGradient

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default How to get the specified position's QColor in QLinearGradient

    I am using Qt4.3 on Windows XP

    my question as below:
    Qt Code:
    1. QLinearGradient linearGrad(startPoint,endPoint);
    2. linearGrad.setColorAt(0,QColor(12,23,24));
    3. linearGrad.setColorAt(1,QColor(122,233,224));
    To copy to clipboard, switch view to plain text mode 

    Now if I want to get the QColor of one specified position which is between startPoint and endPoint.
    what should I do?

    Thanks in advance!
    Last edited by marcel; 20th June 2008 at 18:44. Reason: missing [code] tags

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.