Results 1 to 2 of 2

Thread: Qt Combination of Radial and Conical Gradients

  1. #1
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Qt Combination of Radial and Conical Gradients

    Hello,

    Is there a way to combine the radial and conical gradient? I have a circle where each sector has a different color depending on a value assigned to each sector. I am trying to have a combination of both gradients, the radial and conical gradient so that all sectors' colors merge with all neighboring sectors. The radial gradient looks like this:

    circular.png

    And the conical gradient looks like this:

    conical.png

    Is there a way to have both gradients without having two different drawing paths for each gradient? I have tried drawing a different path for each of the gradients but it doesn't look nice, it looks something like this:

    combined.png

  2. #2
    Join Date
    May 2020
    Posts
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows

    Default Re: Qt Combination of Radial and Conical Gradients

    Quote Originally Posted by ognomir View Post
    Hello,

    Is there a way to combine the radial and conical gradient? I have a circle where each sector has a different color depending on a value assigned to each sector. I am trying to have a combination of both gradients, the radial and conical gradient so that all sectors' colors merge with all neighboring sectors. The radial gradient looks like this:

    circular.png

    And the conical gradient looks like this:

    conical.png

    Is there a way to have both gradients without having two different drawing paths for each gradient? I have tried drawing a different path for each of the gradients but it doesn't look nice, it looks something like this:

    combined.png
    Are you able to combine both Radial & Conical Gradients?

Similar Threads

  1. Overlapping background gradients in CSS
    By Charvi in forum Qt Programming
    Replies: 0
    Last Post: 9th August 2012, 07:32
  2. Replies: 0
    Last Post: 20th November 2009, 16:30
  3. Qt radial layout?
    By brcain in forum Qt Programming
    Replies: 1
    Last Post: 16th April 2009, 11:44
  4. how to disable Alt F4 combination
    By omprakash in forum Qt Programming
    Replies: 3
    Last Post: 17th August 2008, 21:18
  5. OR combination flags in QAbstractFileEngine
    By pmaktieh.sirhc in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2007, 13:31

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.