Results 1 to 3 of 3

Thread: Curve brush with linear gradient?

  1. #1
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    7
    Thanked 5 Times in 4 Posts

    Default Curve brush with linear gradient?

    Hi,

    I'd like to be able to set a curve brush (shaded area below the curve towards baseline) to have a linear gradient between two colors (where one of the colors will also be the canvas color).

    I believe this is not going to be simple. Does anyone have any ideas on how I might achieve this?

    I'm using Qwt 5.2, but could use 6 if it helps.

    TIA,
    Mark

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Curve brush with linear gradient?

    Then assign such a curve brush - what is the question ?

    Uwe

  3. #3
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    7
    Thanked 5 Times in 4 Posts

    Default Re: Curve brush with linear gradient?

    Sorry Uwe,

    I didn't know about qlineargradient ! I feel a little foolish.

    Mark

Similar Threads

  1. Non-typical and Non-linear wizard
    By kornicameister in forum Qt Programming
    Replies: 4
    Last Post: 30th December 2010, 15:26
  2. Replies: 4
    Last Post: 29th April 2010, 06:11
  3. Drawing a line with a linear gradient effect
    By toutarrive in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2010, 07:42
  4. QprogressBar Style Sheets: double linear gradient
    By Beppe in forum Qt Programming
    Replies: 6
    Last Post: 8th May 2009, 14:41
  5. Freehand painting with gradient brush
    By olidem in forum Qt Programming
    Replies: 4
    Last Post: 6th March 2009, 08:25

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.